結果
問題 |
No.8083 12歳
|
ユーザー |
![]() |
提出日時 | 2021-03-30 08:19:18 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 599 ms |
コンパイル使用メモリ | 66,552 KB |
最終ジャッジ日時 | 2025-01-20 00:47:28 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 274 WA * 92 |
ソースコード
#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, 365 - D) << endl; // wrong } // WA 7