結果

問題 No.311 z in FizzBuzzString
ユーザー ki_ki33ki_ki33
提出日時 2015-12-04 10:58:55
言語 Java19
(openjdk 21)
結果
AC  
実行時間 132 ms / 1,500 ms
コード長 795 bytes
コンパイル時間 2,048 ms
コンパイル使用メモリ 77,620 KB
実行使用メモリ 57,720 KB
最終ジャッジ日時 2023-10-25 02:34:07
合計ジャッジ時間 4,157 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,284 KB
testcase_01 AC 126 ms
57,720 KB
testcase_02 AC 121 ms
56,312 KB
testcase_03 AC 125 ms
57,196 KB
testcase_04 AC 126 ms
57,336 KB
testcase_05 AC 129 ms
57,472 KB
testcase_06 AC 118 ms
56,328 KB
testcase_07 AC 127 ms
55,544 KB
testcase_08 AC 132 ms
57,484 KB
testcase_09 AC 131 ms
57,520 KB
testcase_10 AC 126 ms
57,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Rectangle2D;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.*;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentSkipListSet;

public class Main {
	static final long C =  1000000007;
	static final int CY = 1000000000;
	//long[] F;

	int map[][];

	public void calc() {
		StringBuilder sb = new StringBuilder();
		BufferedInputStream bs = new BufferedInputStream(System.in);
		Scanner sc = new Scanner(bs);

		long n=sc.nextLong();

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

	}






	public static void main(String[] args) {
		Main main = new Main();
		main.calc();

	}
}
0