結果

問題 No.311 z in FizzBuzzString
ユーザー omc-testomc-test
提出日時 2016-08-05 14:59:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 57 ms / 1,500 ms
コード長 377 bytes
コンパイル時間 3,059 ms
コンパイル使用メモリ 74,736 KB
実行使用メモリ 53,332 KB
最終ジャッジ日時 2023-10-25 02:46:01
合計ジャッジ時間 4,346 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
53,268 KB
testcase_01 AC 52 ms
53,320 KB
testcase_02 AC 52 ms
53,324 KB
testcase_03 AC 55 ms
53,324 KB
testcase_04 AC 54 ms
53,332 KB
testcase_05 AC 53 ms
52,244 KB
testcase_06 AC 55 ms
53,320 KB
testcase_07 AC 57 ms
52,268 KB
testcase_08 AC 54 ms
53,324 KB
testcase_09 AC 54 ms
52,292 KB
testcase_10 AC 53 ms
53,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No0311 {
	public static void main(String[] args){
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))){
			long n = Long.parseLong(br.readLine());
			System.out.println((n/3 + n/5) * 2);
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}
0