結果
問題 | No.923 オセロきりきざむたん |
ユーザー | titia |
提出日時 | 2019-11-08 23:11:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 367 ms / 2,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 321 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,864 KB |
最終ジャッジ日時 | 2024-09-15 02:54:58 |
合計ジャッジ時間 | 7,728 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 84 |
ソースコード
import sys H,W=map(int,input().split()) A=[list(map(int,list(input()))) for i in range(H)] for i in range(H): if 0<A[i].count(1)<W: continue else: break else: print("YES") sys.exit() for i in range(W): count=0 for j in range(H): if A[j][i]==1: count+=1 if 0<count<H: continue else: break else: print("YES") sys.exit() print("NO")