This commit is contained in:
Luthics 2023-02-11 17:19:29 +08:00
parent d9fa5acd29
commit 887df2c224
3 changed files with 51 additions and 6 deletions

View File

@ -1,5 +1,5 @@
xxx xxx xxx xxx x x x xxx xxx xxx xxx xxx xxx
x x x x x x x x x x x x x x x x x x
xxx xxx xxx xxx xxx xxx x xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx
x x x x x x x x x x x x x x x x x
xxx xxx xxx xxx x x xxx xxx xxx xxx xxx xxx
xxx xxxxxxxx xxxxxxxxxxxxxxxx
x x x x xx xx x xx xx x x
x x xxxxxxxxxxxxxxxx xxxxxxxxxxxxx
x x xx x x xx x xx x x x
xxx xxxxxxx xxxxxxx xxxxxxx

View File

@ -0,0 +1,21 @@
#include <bits/stdc++.h>
using namespace std;
string datas[5];
int data[5][256];
int main(){
freopen("input.txt","r",stdin);
for(int i=0;i<5;i++){
cin >> datas[i];
}
for(int i=0;i<5;i++){
for (int j=0;j<datas[i].size();j++){
if(datas[i][j] == 'x') data[i][j]=1;
else data[i][j]=0;
}
}
return 0;
}

View File

@ -1 +1,25 @@
c
// for(int i=0;i<=10;i++){
// if(i%2==1){
// int signx = randn(1,2);
// for(int j=0;j<5;j++){
// datas[j]+=sign[signx-1][j];
// }
// int space = randn(1,6);
// for(int j=0;j<5;j++){
// for(int k=0;k<space;k++) datas[j] += " ";
// }
// }
// else {
// int num = randn(1,100);
// string s = sstr(num);
// for(int j=0;j<s.size();j++){
// for(int k=0;k<5;k++){
// datas[k] += numbers[s[j]-'0'][k];
// }
// int space = randn(1,6);
// for(int x=0;x<5;x++){
// for(int k=0;k<space;k++) datas[x] += " ";
// }
// }
// }
// }