結果
| 問題 | No.923 オセロきりきざむたん |
| コンテスト | |
| ユーザー |
simamumu
|
| 提出日時 | 2019-11-08 21:59:31 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 706 ms / 2,000 ms |
| コード長 | 708 bytes |
| 記録 | |
| コンパイル時間 | 429 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 48,356 KB |
| 最終ジャッジ日時 | 2026-04-04 16:45:11 |
| 合計ジャッジ時間 | 51,325 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 84 |
ソースコード
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())
import numpy as np
H,W = inpl()
AA = np.array([list(map(int,list(input()))) for _ in range(H)])
for x in range(W):
tmp = sum(AA[:, x])
if tmp == H or tmp == 0:
break
else:
print("YES")
sys.exit()
for y in range(H):
tmp = sum(AA[y, :])
if tmp == W or tmp == 0:
break
else:
print("YES")
sys.exit()
print("NO")
simamumu