結果

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

ソースコード

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