結果

問題 No.311 z in FizzBuzzString
ユーザー UEUEUE66UEUEUE66
提出日時 2018-11-13 15:57:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 2,072 ms
コンパイル使用メモリ 74,572 KB
実行使用メモリ 57,716 KB
最終ジャッジ日時 2023-10-25 02:56:28
合計ジャッジ時間 4,241 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
57,500 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 130 ms
57,488 KB
testcase_04 AC 131 ms
55,520 KB
testcase_05 AC 127 ms
57,524 KB
testcase_06 AC 129 ms
57,540 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 118 ms
55,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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