結果
問題 |
No.87 Advent Calendar Problem
|
ユーザー |
![]() |
提出日時 | 2014-12-12 10:35:09 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 256 bytes |
コンパイル時間 | 583 ms |
コンパイル使用メモリ | 56,288 KB |
実行使用メモリ | 10,140 KB |
最終ジャッジ日時 | 2024-06-11 20:58:14 |
合計ジャッジ時間 | 13,137 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 23 |
ソースコード
#include<iostream> #define repi(i,a,b) for(int i=(a);i<(b);++i) int main() { int N; std::cin >> N; int ans = 0; repi( y, 2015, N+1 ) if( (y+y/4-y/100+y/400+(13*7+8)/5+23)%7 == 3 ) ++ans; std::cout << ans << std::endl; return 0; }