結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー |  6soukiti29 | 
| 提出日時 | 2017-07-27 08:39:11 | 
| 言語 | Nim (2.2.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 358 bytes | 
| コンパイル時間 | 894 ms | 
| コンパイル使用メモリ | 65,024 KB | 
| 最終ジャッジ日時 | 2024-06-30 01:49:22 | 
| 合計ジャッジ時間 | 1,306 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
/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(14, 15) Error: type mismatch
Expression: s - {a, b, c, d}
  [1] s: set[range 0..255(int)]
  [2] {a, b, c, d}: set[range 0..65535(int)]
Expected one of (first mismatch at [position]):
[1] proc `-`(a, b: AllocStats): AllocStats
[1] proc `-`(x, y: float): float
[1] proc `-`(x, y: float32): float32
[1] proc `-`(x, y: int): int
[1] proc `-`(x, y: int16): int16
[1] proc `-`(x, y: int32): int32
[1] proc `-`(x, y: int64): int64
[1] proc `-`(x, y: int8): int8
[1] proc `-`(x, y: uint): uint
[1] proc `-`(x, y: uint16): uint16
[1] proc `-`(x, y: uint32): uint32
[1] proc `-`(x, y: uint64): uint64
[1] proc `-`(x, y: uint8): uint8
[1] proc `-`(x: float): float
[1] proc `-`(x: float32): float32
[1] proc `-`(x: int): int
[1] proc `-`(x: int16): int16
[1] proc `-`(x: int32): int32
[1] proc `-`(x: int64): int64
[1] proc `-`(x: int8): int8
[2] func `-`[T](x, y: set[T]): set[T]
            
            ソースコード
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
            
            
            
        