結果

問題 No.24 数当てゲーム
ユーザー hiro_metal_corehiro_metal_core
提出日時 2017-11-18 01:03:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 369 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-08-16 19:14:30
合計ジャッジ時間 1,122 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,864 KB
testcase_01 AC 13 ms
7,860 KB
testcase_02 AC 12 ms
7,880 KB
testcase_03 AC 13 ms
7,860 KB
testcase_04 AC 13 ms
7,904 KB
testcase_05 AC 13 ms
7,820 KB
testcase_06 AC 13 ms
7,804 KB
testcase_07 AC 14 ms
7,876 KB
testcase_08 AC 14 ms
7,828 KB
testcase_09 AC 13 ms
7,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)))
0