結果

問題 No.87 Advent Calendar Problem
ユーザー kano_townkano_town
提出日時 2014-12-07 02:25:16
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 257 bytes
コンパイル時間 2,990 ms
コンパイル使用メモリ 71,548 KB
実行使用メモリ 57,848 KB
最終ジャッジ日時 2023-09-02 09:12:20
合計ジャッジ時間 6,874 ms
ジャッジサーバーID
(参考情報)
judge16 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 123 ms
55,992 KB
testcase_04 AC 123 ms
55,484 KB
testcase_05 AC 122 ms
55,992 KB
testcase_06 AC 123 ms
55,804 KB
testcase_07 AC 123 ms
55,728 KB
testcase_08 AC 124 ms
55,884 KB
testcase_09 WA -
testcase_10 AC 126 ms
55,696 KB
testcase_11 AC 124 ms
56,232 KB
testcase_12 AC 125 ms
55,796 KB
testcase_13 AC 123 ms
55,852 KB
testcase_14 AC 125 ms
56,096 KB
testcase_15 AC 124 ms
56,356 KB
testcase_16 AC 124 ms
57,536 KB
testcase_17 AC 124 ms
55,840 KB
testcase_18 AC 124 ms
56,020 KB
testcase_19 AC 124 ms
55,776 KB
testcase_20 AC 124 ms
55,800 KB
testcase_21 AC 127 ms
55,744 KB
testcase_22 AC 123 ms
55,912 KB
testcase_23 AC 125 ms
56,112 KB
testcase_24 AC 123 ms
56,028 KB
testcase_25 AC 122 ms
55,568 KB
testcase_26 AC 124 ms
55,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
	public static void main(String[] args) {
		long n=new Scanner(System.in).nextLong()-2014;
		long i,r=57*(n/400);
		for(i=15;i<n%400+16;i++)if((5*(i%100)/4+21*(i/100)/4)%7==3)r++;
		System.out.println(r);
	}
}
0