結果

問題 No.311 z in FizzBuzzString
ユーザー UEUEUE66UEUEUE66
提出日時 2018-11-13 15:52:14
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 395 bytes
コンパイル時間 2,096 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 57,788 KB
最終ジャッジ日時 2023-10-25 02:56:27
合計ジャッジ時間 4,498 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
57,196 KB
testcase_01 AC 136 ms
57,496 KB
testcase_02 AC 141 ms
57,244 KB
testcase_03 AC 137 ms
57,464 KB
testcase_04 AC 138 ms
55,728 KB
testcase_05 AC 137 ms
57,252 KB
testcase_06 AC 137 ms
57,552 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

package com.company;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
	// write your code here
        Scanner s = new Scanner(System.in);
        int count = 0;
        int N = s.nextInt();
        int FB = N / 15;
        int F = N / 3 - FB;
        int B = N / 5 - FB;
        count = 4 * FB + 2 * (F + B);
        System.out.println(count);
    }
}
0