結果
問題 |
No.8083 12歳
|
ユーザー |
|
提出日時 | 2021-04-01 21:42:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 692 bytes |
コンパイル時間 | 3,772 ms |
コンパイル使用メモリ | 229,748 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-21 06:01:00 |
合計ジャッジ時間 | 11,463 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 273 WA * 93 |
ソースコード
#include <bits/stdc++.h> using namespace std; #include <atcoder/all> using namespace atcoder; //using mint = modint1000000007; using mint = modint998244353; template <typename T> bool chmax(T &u, const T z) { if (u < z) {u = z; return true;} else return false; } template <typename T> bool chmin(T &u, const T z) { if (u > z) {u = z; return true;} else return false; } #define ll long long #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) typedef pair<ll, int> P; ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; } ll lcm(ll a, ll b){return a * b / gcd(a, b);} const double PI=acos(-1); int main(){ int y,n,d; cin>>y>>n>>d; cout<<max(n-d,0)<<" "<<min(365-d,n)<<endl; return 0; }