結果
問題 | No.542 1円玉と5円玉 |
ユーザー |
![]() |
提出日時 | 2017-07-21 19:48:42 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 3,359 ms |
コンパイル使用メモリ | 67,208 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 01:43:13 |
合計ジャッジ時間 | 3,528 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 39) Warning: Use the new 'sugar' module instead; future is deprecated [Deprecated] /home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'future' [UnusedImport]
ソースコード
import strutils, sequtils, algorithm, future {.warning[SmallLshouldNotBeUsed]: off.} when isMainModule: var input = stdin.readLine.split.map(parseInt) (a, b) = (input[0], input[1]) ans = newSeq[int]() for i in 0..a: for j in 0..b: if i + j != 0: ans.add(i + j*5) ans.sort(cmp) ans = ans.deduplicate() for i in ans: echo i