結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
foxgod_kitsune
|
| 提出日時 | 2020-11-24 14:12:55 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 261 bytes |
| コンパイル時間 | 3,211 ms |
| コンパイル使用メモリ | 81,028 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 18:37:48 |
| 合計ジャッジ時間 | 3,537 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(2, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(2, 17) Warning: imported and not used: 'algorithm' [UnusedImport] /home/judge/data/code/Main.nim(2, 27) Warning: imported and not used: 'math' [UnusedImport] /home/judge/data/code/Main.nim(2, 32) Warning: imported and not used: 'tables' [UnusedImport] /home/judge/data/code/Main.nim(2, 39) Warning: imported and not used: 'sets' [UnusedImport] /home/judge/data/code/Main.nim(2, 53) Warning: imported and not used: 'times' [UnusedImport]
ソースコード
# {.checks:off.}
import sequtils,algorithm,math,tables,sets,strutils,times
let n = stdin.readLine.parseInt()
for i in 1..n:
if i mod 15 == 0:
echo "FizzBuzz"
elif i mod 3 == 0:
echo "Fizz"
elif i mod 5 == 0:
echo "Buzz"
else:
echo i
foxgod_kitsune