結果
問題 |
No.8094 Character Table
|
ユーザー |
|
提出日時 | 2022-04-01 22:38:55 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 605 bytes |
コンパイル時間 | 216 ms |
コンパイル使用メモリ | 82,092 KB |
実行使用メモリ | 54,416 KB |
最終ジャッジ日時 | 2024-11-20 10:37:00 |
合計ジャッジ時間 | 1,951 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 WA * 8 |
ソースコード
n = int(input()) A = [input().split() for _ in range(n)] tot = 0 for row in A: for a in row: if a != "?": tot += int(a) if n == 1: print(1) elif n == 2: print(2 - tot) elif n == 3: print(5 - tot) elif n == 4: print(4 - tot) elif n == 5: three = False for row in A: if "3" in row: three = True break if three: print(13 - tot) else: print(8 - tot) elif n == 6: print(10 - tot) elif n == 8: print(8 - tot) elif n == 10: if tot >= 20: print(26 - tot) else: print(16 - tot)