結果

問題 No.311 z in FizzBuzzString
ユーザー shinwisteriashinwisteria
提出日時 2018-03-14 20:16:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,500 ms
コード長 271 bytes
コンパイル時間 3,065 ms
コンパイル使用メモリ 74,324 KB
実行使用メモリ 57,628 KB
最終ジャッジ日時 2023-10-25 02:53:56
合計ジャッジ時間 5,074 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
57,364 KB
testcase_01 AC 113 ms
56,200 KB
testcase_02 AC 112 ms
56,248 KB
testcase_03 AC 124 ms
57,628 KB
testcase_04 AC 123 ms
57,420 KB
testcase_05 AC 124 ms
57,196 KB
testcase_06 AC 125 ms
57,352 KB
testcase_07 AC 124 ms
57,548 KB
testcase_08 AC 131 ms
57,444 KB
testcase_09 AC 127 ms
57,308 KB
testcase_10 AC 123 ms
57,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con311 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long n = s.nextLong();
		s.close();

		long count = 0;
		count = n / 3 * 2 + n / 5 * 2;
		System.out.println(count);

	}

}
0