結果

問題 No.24 数当てゲーム
ユーザー RyutoRyuto
提出日時 2017-12-10 21:55:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,948 KB
最終ジャッジ日時 2023-08-20 09:58:44
合計ジャッジ時間 924 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,780 KB
testcase_02 AC 15 ms
7,836 KB
testcase_03 AC 17 ms
7,792 KB
testcase_04 AC 16 ms
7,948 KB
testcase_05 AC 16 ms
7,896 KB
testcase_06 AC 16 ms
7,896 KB
testcase_07 AC 16 ms
7,760 KB
testcase_08 AC 16 ms
7,836 KB
testcase_09 AC 16 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

N = int(input())
inlines = []
for i in range(N):
    inlines.append(input().split())

yescount = 0
yesnums = []
nonums = []
for line in inlines:
    if line[4] == 'YES':
        yesnums += line[:4]
        yescount += 1
    else:
        nonums += line[:4]

for i in set(yesnums):
    if yesnums.count(i)==yescount and nonums.count(i)==0:
        print(i)
0