結果

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

ソースコード

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;
	if(D > 333) { D += c(Y - 12) - c(Y + 1); }
	cout << N - min(N, D) << " " << min(N, c(Y + 1) - D) << endl; // wrong
}
// WA 6
0