結果

問題 No.311 z in FizzBuzzString
ユーザー GrenacheGrenache
提出日時 2015-12-04 00:45:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,500 ms
コード長 287 bytes
コンパイル時間 3,583 ms
コンパイル使用メモリ 77,648 KB
実行使用メモリ 57,748 KB
最終ジャッジ日時 2023-10-25 02:33:16
合計ジャッジ時間 5,584 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
57,476 KB
testcase_01 AC 133 ms
57,748 KB
testcase_02 AC 138 ms
57,496 KB
testcase_03 AC 132 ms
57,556 KB
testcase_04 AC 134 ms
57,536 KB
testcase_05 AC 134 ms
57,744 KB
testcase_06 AC 133 ms
57,540 KB
testcase_07 AC 131 ms
57,512 KB
testcase_08 AC 134 ms
57,520 KB
testcase_09 AC 135 ms
57,480 KB
testcase_10 AC 132 ms
57,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder311 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long n = sc.nextLong();

        long ret = n / 3 + n / 5;

        System.out.println(ret * 2);

        sc.close();
    }
}
0