結果

問題 No.87 Advent Calendar Problem
ユーザー kano_townkano_town
提出日時 2014-12-07 01:14:08
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 413 bytes
コンパイル時間 3,920 ms
コンパイル使用メモリ 72,212 KB
実行使用メモリ 60,796 KB
最終ジャッジ日時 2023-09-02 09:10:33
合計ジャッジ時間 9,953 ms
ジャッジサーバーID
(参考情報)
judge16 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder87 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int res = 0;
		// ツェラーの公式
		for (int i = 2015; i <= N; i++)
			if ((23 + (int) (26 * 8 / 10) + (i % 100) + (int) ((i % 100) / 4) + 5 * (int) (i / 100) + (int) (i / 100) / 4) % 7 == 4) res++;
		System.out.println(res);
	}
}
0