結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー kuuso1kuuso1
提出日時 2016-06-11 13:39:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 512 bytes
コンパイル時間 1,830 ms
コンパイル使用メモリ 73,948 KB
実行使用メモリ 50,140 KB
最終ジャッジ日時 2024-04-17 18:44:43
合計ジャッジ時間 2,115 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		int N = System.in.read();
		for(int i=1;i<=N;i++){
			String s = Integer.toString(i);
			if(i % 3 == 0) s = "Fizz";
			if(i % 5 == 0) s = "Buzz";
			if(i % 15 == 0) s = "FizzBuzz";
			System.out.println(s);
		}
	}
}
0