結果
| 問題 | 
                            No.9002 FizzBuzz(テスト用)
                             | 
                    
| ユーザー | 
                             oyafuso
                         | 
                    
| 提出日時 | 2019-03-11 10:16:48 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 753 bytes | 
| コンパイル時間 | 2,037 ms | 
| コンパイル使用メモリ | 74,400 KB | 
| 実行使用メモリ | 55,968 KB | 
| 最終ジャッジ日時 | 2024-06-23 15:26:02 | 
| 合計ジャッジ時間 | 3,101 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 4 | 
ソースコード
import java.util.*;
class Main {
	private static final String SPLIT_STR = " ";
	private static final String STR_CASE_3 = "Fizz";
	private static final String STR_CASE_5 = "Buzz";
	public static void main(String[] args) {
		// Scanner生成
		Scanner sc = new Scanner(System.in);
		// 入力設定
		String input = sc.nextLine();
		int num = Integer.parseInt(input);
		// Scannerクローズ
		sc.close();
		// 変数設定
		String result = "";
		int remain3 = num % 3;
		int remain5 = num % 5;
		// メイン処理
		if (remain3 == 0 && remain5 == 0) {
			result = STR_CASE_3 + STR_CASE_5;
		} else if (remain3 == 0) {
			result = STR_CASE_3;
		} else if (remain5 == 0) {
			result = STR_CASE_5;
		}
		// 出力
		System.out.println(result);
	}
}
            
            
            
        
            
oyafuso