結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー foxgod_kitsune
提出日時 2020-11-24 14:12:55
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 261 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,943 ms
コンパイル使用メモリ 81,520 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-04-03 15:46:25
合計ジャッジ時間 3,470 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge5_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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, 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 "FizzBuzz"
  elif i mod 3 == 0:
    echo "Fizz"
  elif i mod 5 == 0:
    echo "Buzz"
  else:
    echo i
  
0