結果

問題 No.311 z in FizzBuzzString
ユーザー 37zigen37zigen
提出日時 2016-03-11 02:37:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 1,500 ms
コード長 337 bytes
コンパイル時間 2,369 ms
コンパイル使用メモリ 76,488 KB
実行使用メモリ 57,904 KB
最終ジャッジ日時 2023-10-25 02:42:17
合計ジャッジ時間 4,586 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
57,500 KB
testcase_01 AC 144 ms
57,820 KB
testcase_02 AC 143 ms
57,592 KB
testcase_03 AC 145 ms
57,600 KB
testcase_04 AC 147 ms
57,904 KB
testcase_05 AC 145 ms
57,876 KB
testcase_06 AC 148 ms
57,412 KB
testcase_07 AC 148 ms
57,864 KB
testcase_08 AC 144 ms
57,808 KB
testcase_09 AC 144 ms
57,588 KB
testcase_10 AC 145 ms
57,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Date;
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		long exec_time=new Date().getTime();
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long ans=2*((long)n/3+(long)n/5);
		System.out.println(ans);
		System.err.println(new Date().getTime()-exec_time+"ans");
	}
}
0