結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー claw88claw88
提出日時 2020-08-15 18:42:12
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 11,549 ms
コンパイル使用メモリ 233,696 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-19 02:36:42
合計ジャッジ時間 10,869 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import "fmt"

func main() {
	var N int
	fmt.Scan(&N)

	for i := 1; i <= N; i++ {
		switch {
		case i%3 == 0:
			fmt.Print("Fizz")
			fallthrough
		case i%5 == 0:
			fmt.Print("Buzz")
		default:
			fmt.Print(i)
		}
		fmt.Println()
	}
}
0