結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー foxgod_kitsune
提出日時 2020-11-24 14:12:22
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 4,582 ms
コンパイル使用メモリ 80,172 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-23 18:37:37
合計ジャッジ時間 4,817 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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, 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]

ソースコード

diff #

# {.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