結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー foxgod_kitsune
提出日時 2020-11-24 14:12:22
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 260 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,035 ms
コンパイル使用メモリ 82,932 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-04-03 15:46:17
合計ジャッジ時間 5,270 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
/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, 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]

ソースコード

diff #
raw source code

# {.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 "FizzBuz"
  elif i mod 3 == 0:
    echo "Fizz"
  elif i mod 5 == 0:
    echo "Buzz"
  else:
    echo i
  
0