結果

問題 No.311 z in FizzBuzzString
ユーザー ほげ太郎ほげ太郎
提出日時 2018-02-26 14:21:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,500 ms
コード長 221 bytes
コンパイル時間 1,970 ms
コンパイル使用メモリ 73,960 KB
実行使用メモリ 57,600 KB
最終ジャッジ日時 2023-10-25 02:53:40
合計ジャッジ時間 4,153 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,408 KB
testcase_01 AC 131 ms
57,600 KB
testcase_02 AC 132 ms
57,564 KB
testcase_03 AC 132 ms
57,560 KB
testcase_04 AC 131 ms
57,396 KB
testcase_05 AC 132 ms
57,504 KB
testcase_06 AC 131 ms
57,556 KB
testcase_07 AC 130 ms
57,484 KB
testcase_08 AC 134 ms
57,516 KB
testcase_09 AC 133 ms
57,520 KB
testcase_10 AC 128 ms
57,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] p) {
        Scanner q = new Scanner(System.in);
        long n = q.nextLong();
        System.out.println((n / 3 + n / 5) * 2);
    }
}
0