Submission #1417369


Source Code Expand

#include<iostream>
#include<vector>
using namespace std;
int main(){
int h, w;
cin >> h >> w;
vector<vector<int>> bd;
vector<int> h1, w1;
bd.resize(h);
h1.resize(h);
w1.resize(w);
for(int i=0; i<h; i++) {
bd[i].resize(w);
for(int j=0; j <w; j++){
cin >> bd[i][j];
bd[i][j] ^= 1;
h1[i]+=bd[i][j];
w1[j]+=bd[i][j];
}
}
for(int i=0;i<h;i++){
cout << (h1[i]+w1[0]-bd[i][0])%2;
for(int j=1; j <w; j++){
cout <<" "<< (h1[i]+w1[j]-bd[i][j])%2;
}
cout << endl;
}
return 0;
}

Submission Info

Submission Time
Task H - 植林
User ninja7
Language C++14 (GCC 5.4.1)
Score 100
Code Size 494 Byte
Status AC
Exec Time 254 ms
Memory 6144 KB

Judge Result

Set Name Partial 1 All
Score / Max Score 3 / 3 97 / 97
Status
AC × 35
AC × 101
Set Name Test Cases
Partial 1 00_alt_01, 00_alt_03, 00_alt_06, 00_alt_08, 00_alt_21, 00_alt_23, 00_alt_26, 00_alt_28, 00_alt_41, 00_alt_43, 00_alt_46, 00_alt_48, 00_alt_61, 00_alt_63, 00_alt_66, 00_alt_68, 00_fill_00, 00_fill_02, 00_fill_05, 00_fill_07, 00_fill_10, 00_fill_12, 00_fill_20, 00_fill_22, 00_fill_25, 00_fill_27, 00_fill_40, 00_fill_42, 00_rand_04, 00_rand_09, 00_rand_14, 00_rand_24, 00_rand_29, 00_rand_44, 00_sample_1
All 00_alt_01, 00_alt_03, 00_alt_06, 00_alt_08, 00_alt_21, 00_alt_23, 00_alt_26, 00_alt_28, 00_alt_41, 00_alt_43, 00_alt_46, 00_alt_48, 00_alt_61, 00_alt_63, 00_alt_66, 00_alt_68, 00_fill_00, 00_fill_02, 00_fill_05, 00_fill_07, 00_fill_10, 00_fill_12, 00_fill_20, 00_fill_22, 00_fill_25, 00_fill_27, 00_fill_40, 00_fill_42, 00_rand_04, 00_rand_09, 00_rand_14, 00_rand_24, 00_rand_29, 00_rand_44, 00_sample_1, 10_alt_11, 10_alt_13, 10_alt_16, 10_alt_18, 10_alt_31, 10_alt_33, 10_alt_36, 10_alt_38, 10_alt_51, 10_alt_53, 10_alt_56, 10_alt_58, 10_alt_71, 10_alt_73, 10_alt_76, 10_alt_78, 10_fill_15, 10_fill_17, 10_fill_30, 10_fill_32, 10_fill_35, 10_fill_37, 10_fill_45, 10_fill_47, 10_fill_50, 10_fill_52, 10_fill_55, 10_fill_57, 10_fill_60, 10_fill_62, 10_fill_65, 10_fill_67, 10_fill_70, 10_fill_72, 10_fill_75, 10_fill_77, 10_rand_19, 10_rand_34, 10_rand_39, 10_rand_49, 10_rand_54, 10_rand_59, 10_rand_64, 10_rand_69, 10_rand_74, 10_rand_79, 10_rand_80, 10_rand_81, 10_rand_82, 10_rand_83, 10_rand_84, 10_rand_85, 10_rand_86, 10_rand_87, 10_rand_88, 10_rand_89, 10_rand_90, 10_rand_91, 10_rand_92, 10_rand_93, 10_rand_94, 10_rand_95, 10_rand_96, 10_rand_97, 10_rand_98, 10_rand_99
Case Name Status Exec Time Memory
00_alt_01 AC 1 ms 256 KB
00_alt_03 AC 1 ms 256 KB
00_alt_06 AC 1 ms 256 KB
00_alt_08 AC 1 ms 256 KB
00_alt_21 AC 1 ms 256 KB
00_alt_23 AC 1 ms 256 KB
00_alt_26 AC 1 ms 256 KB
00_alt_28 AC 1 ms 256 KB
00_alt_41 AC 1 ms 256 KB
00_alt_43 AC 1 ms 256 KB
00_alt_46 AC 1 ms 256 KB
00_alt_48 AC 1 ms 256 KB
00_alt_61 AC 1 ms 256 KB
00_alt_63 AC 1 ms 256 KB
00_alt_66 AC 1 ms 256 KB
00_alt_68 AC 1 ms 256 KB
00_fill_00 AC 1 ms 256 KB
00_fill_02 AC 1 ms 256 KB
00_fill_05 AC 1 ms 256 KB
00_fill_07 AC 1 ms 256 KB
00_fill_10 AC 1 ms 256 KB
00_fill_12 AC 1 ms 256 KB
00_fill_20 AC 1 ms 256 KB
00_fill_22 AC 1 ms 256 KB
00_fill_25 AC 1 ms 256 KB
00_fill_27 AC 1 ms 256 KB
00_fill_40 AC 1 ms 256 KB
00_fill_42 AC 1 ms 256 KB
00_rand_04 AC 1 ms 256 KB
00_rand_09 AC 1 ms 256 KB
00_rand_14 AC 1 ms 256 KB
00_rand_24 AC 1 ms 256 KB
00_rand_29 AC 1 ms 256 KB
00_rand_44 AC 1 ms 256 KB
00_sample_1 AC 1 ms 256 KB
10_alt_11 AC 1 ms 256 KB
10_alt_13 AC 1 ms 256 KB
10_alt_16 AC 244 ms 6144 KB
10_alt_18 AC 239 ms 6144 KB
10_alt_31 AC 1 ms 256 KB
10_alt_33 AC 1 ms 256 KB
10_alt_36 AC 243 ms 6144 KB
10_alt_38 AC 243 ms 6144 KB
10_alt_51 AC 1 ms 256 KB
10_alt_53 AC 1 ms 256 KB
10_alt_56 AC 243 ms 6144 KB
10_alt_58 AC 241 ms 6144 KB
10_alt_71 AC 1 ms 256 KB
10_alt_73 AC 1 ms 256 KB
10_alt_76 AC 236 ms 6144 KB
10_alt_78 AC 242 ms 6144 KB
10_fill_15 AC 2 ms 256 KB
10_fill_17 AC 2 ms 256 KB
10_fill_30 AC 1 ms 256 KB
10_fill_32 AC 1 ms 256 KB
10_fill_35 AC 2 ms 256 KB
10_fill_37 AC 2 ms 256 KB
10_fill_45 AC 1 ms 256 KB
10_fill_47 AC 1 ms 256 KB
10_fill_50 AC 1 ms 256 KB
10_fill_52 AC 1 ms 256 KB
10_fill_55 AC 4 ms 256 KB
10_fill_57 AC 4 ms 256 KB
10_fill_60 AC 3 ms 256 KB
10_fill_62 AC 3 ms 256 KB
10_fill_65 AC 4 ms 256 KB
10_fill_67 AC 4 ms 256 KB
10_fill_70 AC 5 ms 384 KB
10_fill_72 AC 5 ms 384 KB
10_fill_75 AC 240 ms 6144 KB
10_fill_77 AC 235 ms 6144 KB
10_rand_19 AC 2 ms 256 KB
10_rand_34 AC 1 ms 256 KB
10_rand_39 AC 2 ms 256 KB
10_rand_49 AC 1 ms 256 KB
10_rand_54 AC 1 ms 256 KB
10_rand_59 AC 4 ms 256 KB
10_rand_64 AC 3 ms 256 KB
10_rand_69 AC 4 ms 256 KB
10_rand_74 AC 5 ms 384 KB
10_rand_79 AC 247 ms 6144 KB
10_rand_80 AC 249 ms 6144 KB
10_rand_81 AC 246 ms 6144 KB
10_rand_82 AC 246 ms 6144 KB
10_rand_83 AC 246 ms 6144 KB
10_rand_84 AC 247 ms 6144 KB
10_rand_85 AC 254 ms 6144 KB
10_rand_86 AC 246 ms 6144 KB
10_rand_87 AC 250 ms 6144 KB
10_rand_88 AC 247 ms 6144 KB
10_rand_89 AC 247 ms 6144 KB
10_rand_90 AC 86 ms 2304 KB
10_rand_91 AC 202 ms 4992 KB
10_rand_92 AC 93 ms 2432 KB
10_rand_93 AC 105 ms 2688 KB
10_rand_94 AC 55 ms 1536 KB
10_rand_95 AC 37 ms 1152 KB
10_rand_96 AC 55 ms 1536 KB
10_rand_97 AC 7 ms 384 KB
10_rand_98 AC 47 ms 1280 KB
10_rand_99 AC 20 ms 640 KB