結果

問題 No.593 4進FizzBuzz
ユーザー uafr_csuafr_cs
提出日時 2017-11-10 22:27:44
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 502 bytes
コンパイル時間 2,130 ms
コンパイル使用メモリ 75,112 KB
実行使用メモリ 72,120 KB
最終ジャッジ日時 2024-05-03 12:37:05
合計ジャッジ時間 11,323 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
54,108 KB
testcase_01 AC 111 ms
53,868 KB
testcase_02 AC 107 ms
52,580 KB
testcase_03 WA -
testcase_04 AC 104 ms
52,684 KB
testcase_05 AC 118 ms
54,100 KB
testcase_06 WA -
testcase_07 AC 115 ms
54,384 KB
testcase_08 AC 96 ms
52,700 KB
testcase_09 AC 113 ms
54,224 KB
testcase_10 WA -
testcase_11 AC 111 ms
53,788 KB
testcase_12 AC 111 ms
53,588 KB
testcase_13 AC 128 ms
53,908 KB
testcase_14 AC 134 ms
54,316 KB
testcase_15 AC 123 ms
53,960 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {
	
	public static long MOD = 1000000007;
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		final long N = sc.nextLong(4);
		
		if(N % 15 == 0){
			System.out.println("FizzBuzz");
		}else if(N % 5 == 0){
			System.out.println("Buzz");
		}else if(N % 3 == 0){
			System.out.println("Fizz");
		}else{
			System.out.println(N);
		}
		
	}
}
0