結果

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

ソースコード

diff #

#include <iostream>
using namespace std;
int c(int y) { return 365 + (y % 4 != 0 ? 0 : 1); } // wrong
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 - 12) - D) << endl;
}
// WA 2
0