結果
問題 |
No.773 コンテスト
|
ユーザー |
![]() |
提出日時 | 2022-08-06 02:57:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 511 bytes |
コンパイル時間 | 766 ms |
コンパイル使用メモリ | 72,848 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 00:31:19 |
合計ジャッジ時間 | 1,592 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<map> #define all(x) x.begin(),x.end() #define pb push_back #define ll long long #define P pair<int,int> #define LP pair<ll,ll> using namespace std; int main() { int a, b; cin >> a>>b; if (b < 23) cout << 3 << endl; else if (b < 26) { if (a < 23) cout << 25 - b ; else if (a < 26) cout << 3 - (b - a + 1); } else { if (a < 23) cout << 0; else if (a < 26) cout<<3-(25 - a + 1); else cout << 3; } return 0; }