結果

問題 No.923 オセロきりきざむたん
ユーザー pluto77pluto77
提出日時 2020-03-24 12:49:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,912 KB
実行使用メモリ 18,400 KB
最終ジャッジ日時 2023-08-30 05:22:00
合計ジャッジ時間 7,618 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 15 ms
8,108 KB
testcase_02 AC 16 ms
8,116 KB
testcase_03 WA -
testcase_04 AC 17 ms
8,324 KB
testcase_05 AC 16 ms
8,308 KB
testcase_06 AC 16 ms
8,124 KB
testcase_07 AC 16 ms
8,116 KB
testcase_08 AC 16 ms
8,160 KB
testcase_09 AC 15 ms
8,120 KB
testcase_10 AC 16 ms
8,192 KB
testcase_11 AC 16 ms
8,308 KB
testcase_12 AC 16 ms
8,088 KB
testcase_13 AC 16 ms
8,240 KB
testcase_14 AC 16 ms
8,112 KB
testcase_15 AC 16 ms
8,116 KB
testcase_16 AC 16 ms
8,124 KB
testcase_17 AC 16 ms
8,144 KB
testcase_18 AC 16 ms
8,132 KB
testcase_19 AC 16 ms
8,128 KB
testcase_20 AC 17 ms
8,388 KB
testcase_21 AC 15 ms
8,120 KB
testcase_22 AC 17 ms
8,332 KB
testcase_23 AC 17 ms
8,196 KB
testcase_24 AC 15 ms
8,260 KB
testcase_25 AC 16 ms
8,272 KB
testcase_26 AC 38 ms
9,228 KB
testcase_27 AC 31 ms
9,140 KB
testcase_28 WA -
testcase_29 AC 32 ms
9,140 KB
testcase_30 AC 25 ms
8,676 KB
testcase_31 AC 28 ms
9,016 KB
testcase_32 AC 16 ms
8,156 KB
testcase_33 AC 16 ms
8,264 KB
testcase_34 AC 16 ms
8,252 KB
testcase_35 AC 16 ms
8,212 KB
testcase_36 AC 16 ms
8,188 KB
testcase_37 AC 16 ms
8,260 KB
testcase_38 AC 17 ms
8,188 KB
testcase_39 AC 16 ms
8,156 KB
testcase_40 AC 16 ms
8,252 KB
testcase_41 AC 16 ms
8,256 KB
testcase_42 AC 16 ms
8,120 KB
testcase_43 AC 16 ms
8,144 KB
testcase_44 AC 16 ms
8,316 KB
testcase_45 WA -
testcase_46 AC 16 ms
8,256 KB
testcase_47 AC 18 ms
8,256 KB
testcase_48 AC 17 ms
8,212 KB
testcase_49 AC 17 ms
8,160 KB
testcase_50 AC 65 ms
10,184 KB
testcase_51 AC 64 ms
10,140 KB
testcase_52 WA -
testcase_53 WA -
testcase_54 AC 70 ms
10,404 KB
testcase_55 AC 78 ms
10,932 KB
testcase_56 WA -
testcase_57 AC 17 ms
8,404 KB
testcase_58 AC 17 ms
8,208 KB
testcase_59 AC 18 ms
8,336 KB
testcase_60 AC 17 ms
8,392 KB
testcase_61 WA -
testcase_62 AC 19 ms
8,452 KB
testcase_63 AC 17 ms
8,300 KB
testcase_64 AC 17 ms
8,336 KB
testcase_65 AC 262 ms
18,292 KB
testcase_66 WA -
testcase_67 WA -
testcase_68 WA -
testcase_69 AC 31 ms
9,160 KB
testcase_70 AC 31 ms
9,088 KB
testcase_71 WA -
testcase_72 AC 31 ms
9,116 KB
testcase_73 AC 17 ms
8,164 KB
testcase_74 AC 22 ms
8,488 KB
testcase_75 AC 30 ms
8,892 KB
testcase_76 AC 22 ms
8,592 KB
testcase_77 AC 34 ms
8,928 KB
testcase_78 AC 20 ms
8,300 KB
testcase_79 AC 31 ms
8,864 KB
testcase_80 AC 31 ms
8,988 KB
testcase_81 AC 27 ms
8,764 KB
testcase_82 AC 38 ms
9,144 KB
testcase_83 AC 24 ms
8,612 KB
testcase_84 AC 33 ms
9,156 KB
testcase_85 AC 30 ms
8,816 KB
testcase_86 AC 26 ms
8,700 KB
testcase_87 AC 28 ms
8,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W=map(int,input().split())
a=[]
for i in range(H):
 a.append(list(map(int,input().rstrip())))
if all(len(set(l))==2 for l in a):
 print('YES')
 exit()
for x in range(W):
 v=[0,0]
 for y in range(H):
  v[a[y][x]]=1
  if v[0]==0 or v[1]==0:
   print('NO')
   exit()
print('YES')
0