結果

問題 No.8083 12歳
ユーザー FF256grhy
提出日時 2021-03-30 08:28:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 66,024 KB
最終ジャッジ日時 2025-01-20 00:49:45
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 281 WA * 85
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int c(int y) { return 365 + (y % 4 != 0 || (y % 100 == 0 && y % 400 != 0) ? 0 : 1); }
int main() {
	int Y, N, D; cin >> Y >> N >> D;
	int D2 = D;
	if(D > 333) { D2 += c(Y - 12) - c(Y + 1); }
	cout << N - min(N, D2) << " " << min(N, c(Y - 12) - D) << endl; // wrong
}
// WA 17
0