結果

問題 No.311 z in FizzBuzzString
ユーザー nullzinenullzine
提出日時 2017-01-24 17:32:37
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 331 bytes
コンパイル時間 2,184 ms
コンパイル使用メモリ 87,884 KB
実行使用メモリ 62,344 KB
最終ジャッジ日時 2023-10-25 02:48:58
合計ジャッジ時間 6,228 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
62,048 KB
testcase_01 AC 131 ms
57,664 KB
testcase_02 AC 122 ms
56,480 KB
testcase_03 AC 133 ms
57,684 KB
testcase_04 AC 132 ms
57,640 KB
testcase_05 AC 131 ms
57,788 KB
testcase_06 AC 130 ms
57,900 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.stream.LongStream;

/**
 * Created by nullzine on 2017/01/20.
 */
public class Main {

    public static void main(String[] args){
        System.out.println(LongStream.range(1,Long.parseLong(new java.util.Scanner(System.in).nextLine())+1).parallel().map(m->m%3==0&&m%5==0?4:(m%3==0||m%5==0?2:0)).sum());
    }

}
0