結果
問題 |
No.893 お客様を誘導せよ
|
ユーザー |
![]() |
提出日時 | 2019-09-27 21:39:31 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 495 bytes |
コンパイル時間 | 3,854 ms |
コンパイル使用メモリ | 65,712 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 09:52:02 |
合計ジャッジ時間 | 4,118 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 11 |
ソースコード
import sequtils,strutils var N = stdin.readline.parseInt ans = newSeq[int](0) Ls = newSeqWith(N + 1, newSeq[int](0)) cnt = 0 for n in 0..<N: var L = stdin.readline.split.map(parseInt) Ls[n] = L var f = true while f: f = false cnt += 1 for i in 0..<N: if Ls[i][0] < cnt: continue f = true ans.add(Ls[i][cnt]) for i,a in ans: stdout.write(a) if i == ans.high: stdout.write("\n") stdout.write(" ")