結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー indexs5indexs5
提出日時 2016-10-10 00:44:56
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 11,747 ms
コンパイル使用メモリ 222,388 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-05-01 18:46:29
合計ジャッジ時間 11,142 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package main
import(
		"fmt"
)

func main(){
		a := 0
		fmt.Scan(&a)
		for i := 0 ;i <= a;i++ {
				if i % 3 == 0 && i % 5 == 0 {
						fmt.Println("FizzBuzz")
				} else if i % 3 == 0 {
						fmt.Println("Fizz")
				} else if i % 5 == 0 {
						fmt.Println("Buzz")
				} else {
						fmt.Println(i)
				}
		}
}
0