結果
問題 | No.24 数当てゲーム |
ユーザー |
![]() |
提出日時 | 2023-10-03 12:24:34 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 3,731 ms |
コンパイル使用メモリ | 66,220 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-26 14:05:10 |
合計ジャッジ時間 | 4,309 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import sequtils, strutils let n = parseInt readLine stdin var nums = (0..9).toSeq for _ in 0..<n: let xs = stdin.readLine.split prediction = xs[0..3].map parseInt r = xs[4] if r == "YES": nums.keepItIf it in prediction if r == "NO": nums.keepItIf it notin prediction echo nums[0]