結果
問題 | No.24 数当てゲーム |
ユーザー |
![]() |
提出日時 | 2017-11-18 01:03:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 27 ms / 5,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-25 08:55:46 |
合計ジャッジ時間 | 944 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
N = int(input()) taro_num = [] for n in range(N): taro_num.append(input().split()) jiro_pre = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] for n in range(N): if (taro_num[n][4] == 'YES'): for i in taro_num[n][:4]: jiro_pre[int(i)] += 1 else: for j in taro_num[n][:4]: jiro_pre[int(j)] -= 1 print(jiro_pre.index(max(jiro_pre)))