結果
問題 | No.9002 FizzBuzz(テスト用) |
ユーザー |
![]() |
提出日時 | 2016-06-11 13:48:29 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 2,940 ms |
コンパイル使用メモリ | 65,024 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 13:51:53 |
合計ジャッジ時間 | 3,429 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 39) Warning: imported and not used: 'math' [UnusedImport] /home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'algorithm' [UnusedImport]
ソースコード
import strutils, sequtils, algorithm, math let n = readLine(stdin).parseInt for i in 0..n: if i mod 15 == 0: echo "FizzBuzz" elif i mod 5 == 0: echo "Buzz" elif i mod 3 == 0: echo "Fizz" else: echo i