結果
問題 |
No.3235 巡回減算
|
ユーザー |
![]() |
提出日時 | 2025-08-15 21:31:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 2,513 ms / 10,000 ms |
コード長 | 335 bytes |
コンパイル時間 | 362 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 76,720 KB |
最終ジャッジ日時 | 2025-08-15 21:32:05 |
合計ジャッジ時間 | 43,819 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
from itertools import product A = [[int(x) for x in input()] for i in range(8)] #え~~ for P in product(range(8), repeat = 7): now = A[0][:] for i in range(7): for j in range(8): now[j] -= A[i+1][(j+P[i])%8] ok = (max(now) == 0 and min(now) == 0) if ok: exit(print("Yes")) print("No")