結果

問題 No.24 数当てゲーム
ユーザー mlihua09mlihua09
提出日時 2020-08-26 02:38:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 499 bytes
コンパイル時間 375 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 71,484 KB
最終ジャッジ日時 2023-08-06 09:02:29
合計ジャッジ時間 2,077 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,372 KB
testcase_01 AC 69 ms
71,400 KB
testcase_02 AC 71 ms
71,308 KB
testcase_03 AC 75 ms
71,348 KB
testcase_04 AC 70 ms
71,460 KB
testcase_05 AC 71 ms
71,068 KB
testcase_06 AC 71 ms
71,264 KB
testcase_07 AC 73 ms
71,352 KB
testcase_08 AC 70 ms
71,484 KB
testcase_09 AC 71 ms
71,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N = int(input())

ans = [1] * 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] = 0
        
        ans[B] = 0
        
        ans[C] = 0
        
        ans[D] = 0
        
    else:
        
        for i in range(10):
            
            if not(i in (A, B, C, D)):
                
                ans[i] = 0
                
print(ans.index(1))
0