結果

問題 No.311 z in FizzBuzzString
ユーザー キョウチクキョウチク
提出日時 2022-05-16 11:01:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,500 ms
コード長 283 bytes
コンパイル時間 3,173 ms
コンパイル使用メモリ 74,492 KB
実行使用メモリ 57,600 KB
最終ジャッジ日時 2023-10-25 03:03:20
合計ジャッジ時間 5,203 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
57,600 KB
testcase_01 AC 124 ms
57,564 KB
testcase_02 AC 121 ms
57,252 KB
testcase_03 AC 126 ms
57,428 KB
testcase_04 AC 131 ms
57,584 KB
testcase_05 AC 126 ms
57,572 KB
testcase_06 AC 128 ms
57,524 KB
testcase_07 AC 122 ms
57,352 KB
testcase_08 AC 120 ms
57,500 KB
testcase_09 AC 111 ms
56,288 KB
testcase_10 AC 122 ms
57,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Test10 {
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String line;
    line=sc.nextLine();
    long n=Long.parseLong(line);
    long nz=0;
    nz+=(n/3+n/5)*2;
    System.out.println(nz);
    sc.close();
  }
}
0