結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
6soukiti29
|
| 提出日時 | 2017-07-27 08:39:11 |
| 言語 | Nim (2.2.6) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 2,374 ms |
| コンパイル使用メモリ | 67,132 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-19 18:39:09 |
| 合計ジャッジ時間 | 3,053 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(14, 17) Warning: type 'int' is too big to be a `set` element, assuming a range of 0..65535, explicitly write this range to get rid of warning [AboveMaxSizeSet] /home/judge/data/code/Main.nim(16, 17) Warning: type 'int' is too big to be a `set` element, assuming a range of 0..65535, explicitly write this range to get rid of warning [AboveMaxSizeSet]
ソースコード
import strutils,strscans
var
N = stdin.readline.parseInt
a,b,c,d : int
r : string
scan : bool
s = {0..9}
A : set[int8]
line : string
for i in 0..<N:
line = stdin.readline
scan = scanf(line,"$i $i $i $i $+\n",a,b,c,d,r)
if r == "NO":
s = s - {a,b,c,d}
else:
s = s * {a,b,c,d}
for i in s:
echo i
6soukiti29