結果
| 問題 | No.26 シャッフルゲーム | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-07-30 00:45:46 | 
| 言語 | Nim (2.2.0) | 
| 結果 | 
                                CE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 547 bytes | 
| コンパイル時間 | 735 ms | 
| コンパイル使用メモリ | 68,736 KB | 
| 最終ジャッジ日時 | 2024-06-30 01:54:28 | 
| 合計ジャッジ時間 | 1,062 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
            
            
            
            
            ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 50) Warning: Use the new 'sugar' module instead; future is deprecated [Deprecated]
/home/judge/data/code/Main.nim(13, 2) template/generic instantiation of `times` from here
/home/judge/data/code/Main.nim(15, 24) Error: type mismatch: got 'seq[int]' for 'map(split(readLine(stdin), {' ', '\t', '\v', '\r', '\n', '\f'}, -1), parseInt)' but expected 'tuple'
            
            ソースコード
import sequtils,strutils,strscans,algorithm,math,future,sets template get():string = stdin.readLine() template times(n:int,body:untyped): untyped = (for _ in 0..<n: body) template REP(i:untyped,n:int,body:untyped):untyped = block:(var i = 0; while i < n:( body; i += 1)) ################################################################### var A = newSeq[bool](4) let N = get().parseInt M = get().parseInt A[N] = true M.times: var P,Q:int (P,Q) = get().split().map(parseInt) (A[P],A[Q]) = (A[Q],A[P]) for i in 1..3: if A[i] : echo i
