結果
問題 | No.24 数当てゲーム |
ユーザー | motor_radial |
提出日時 | 2019-07-24 06:25:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 237 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-27 06:34:32 |
合計ジャッジ時間 | 929 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
uni=["0","1","2","3","4","5","6","7","8","9"] N=int(input()) A=[] for _ in range(N): A=(input().split()) if A[4]=="YES": ans=[] for j in range(4): if A[j] in uni: ans.append(A[j]) uni=ans else: for j in range(4): if A[j] in uni: uni.remove(A[j]) print(uni[0])