結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー foxgod_kitsunefoxgod_kitsune
提出日時 2020-11-24 14:12:22
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 4,177 ms
コンパイル使用メモリ 68,612 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-10-01 01:01:54
合計ジャッジ時間 4,673 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
/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