結果
問題 |
No.24 数当てゲーム
|
ユーザー |
![]() |
提出日時 | 2019-12-15 09:49:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 750 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-02 18:09:11 |
合計ジャッジ時間 | 885 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import sys from collections import Counter sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def main(): ans = [True] * 10 n = int(input()) for _ in range(n): s = input().split() ad = set(map(int, s[:-1])) if s[-1] == "YES": for i in range(10): if i in ad: continue ans[i] = False else: for i in ad: ans[i] = False for i in range(10): if ans[i]: print(i) break main()