結果

問題 No.311 z in FizzBuzzString
ユーザー koukonkokoukonko
提出日時 2015-12-10 18:19:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 557 bytes
コンパイル時間 1,879 ms
コンパイル使用メモリ 74,528 KB
実行使用メモリ 53,608 KB
最終ジャッジ日時 2023-10-25 02:38:11
合計ジャッジ時間 3,021 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,588 KB
testcase_01 AC 52 ms
53,600 KB
testcase_02 AC 53 ms
53,592 KB
testcase_03 AC 55 ms
53,588 KB
testcase_04 AC 52 ms
53,592 KB
testcase_05 AC 51 ms
53,604 KB
testcase_06 AC 52 ms
53,604 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));

		try {

			double count = Double.parseDouble(buff.readLine());
			int ans = 0;
			ans += count / 3;
			ans += count / 5;

			System.out.println(ans * 2);

		} catch (NumberFormatException e) {
			e.getStackTrace();
		} catch (IOException e) {
			e.getStackTrace();
		} catch (Exception e) {
			e.getStackTrace();
		}
	}
}
0