結果

問題 No.311 z in FizzBuzzString
ユーザー tentententen
提出日時 2020-11-04 12:30:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,500 ms
コード長 197 bytes
コンパイル時間 1,916 ms
コンパイル使用メモリ 73,848 KB
実行使用メモリ 57,624 KB
最終ジャッジ日時 2023-10-25 03:02:11
合計ジャッジ時間 4,044 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
57,488 KB
testcase_01 AC 129 ms
57,300 KB
testcase_02 AC 128 ms
57,508 KB
testcase_03 AC 129 ms
57,548 KB
testcase_04 AC 130 ms
57,560 KB
testcase_05 AC 131 ms
57,520 KB
testcase_06 AC 128 ms
57,536 KB
testcase_07 AC 125 ms
57,552 KB
testcase_08 AC 129 ms
57,584 KB
testcase_09 AC 126 ms
55,604 KB
testcase_10 AC 124 ms
57,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		System.out.println((n / 3 + n / 5) * 2);
	}
}
0