結果

問題 No.87 Advent Calendar Problem
ユーザー kano_town
提出日時 2014-12-07 02:20:55
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 2,228 ms
コンパイル使用メモリ 73,744 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-06-11 16:01:08
合計ジャッジ時間 5,674 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 22 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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+14;i++)if((5*(i %100)/4+21*(i/100)/4)%7==3)r++;
		System.out.println(r);
	}
}
0