結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー kuuso1
提出日時 2016-06-11 13:39:25
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 512 bytes
コンパイル時間 2,170 ms
コンパイル使用メモリ 74,752 KB
実行使用メモリ 50,152 KB
最終ジャッジ日時 2024-10-09 12:51:05
合計ジャッジ時間 2,870 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 4
権限があれば一括ダウンロードができます

ソースコード

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