結果

問題 No.311 z in FizzBuzzString
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-01-10 11:06:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,500 ms
コード長 257 bytes
コンパイル時間 2,119 ms
コンパイル使用メモリ 74,192 KB
実行使用メモリ 57,576 KB
最終ジャッジ日時 2023-10-25 02:40:15
合計ジャッジ時間 4,230 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
57,552 KB
testcase_01 AC 128 ms
57,520 KB
testcase_02 AC 128 ms
57,292 KB
testcase_03 AC 125 ms
57,496 KB
testcase_04 AC 125 ms
57,552 KB
testcase_05 AC 126 ms
57,576 KB
testcase_06 AC 125 ms
57,532 KB
testcase_07 AC 125 ms
57,424 KB
testcase_08 AC 128 ms
57,460 KB
testcase_09 AC 125 ms
57,500 KB
testcase_10 AC 124 ms
57,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String str = in.next();
        long n = Long.parseLong(str);

        System.out.println((n / 3 + n / 5) * 2);
    }
}
0