結果
問題 | No.24 数当てゲーム |
ユーザー |
|
提出日時 | 2024-05-17 19:44:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 392 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-20 12:54:03 |
合計ジャッジ時間 | 1,238 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
n = int(input()) t = list(range(10)) ans = [0] * 10 for i in range(n): a, b, c, d, r = input().split() a = int(a) b = int(b) c = int(c) d = int(d) if r == "NO": ans[a] -= 1 ans[b] -= 1 ans[c] -= 1 ans[d] -= 1 else: ans[a] += 1 ans[b] += 1 ans[c] += 1 ans[d] += 1 print(ans.index(max(ans)))