結果
問題 |
No.674 n連勤
|
ユーザー |
![]() |
提出日時 | 2017-03-28 00:19:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,129 bytes |
コンパイル時間 | 872 ms |
コンパイル使用メモリ | 86,736 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 12:13:34 |
合計ジャッジ時間 | 2,098 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 17 |
ソースコード
#include <algorithm> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; #define sz size() #define pb push_back #define mp make_pair #define fi first #define se second #define all(c) (c).begin(), (c).end() #define rep(i,a,b) for(ll i=(a);i<(b);++i) #define clr(a, b) memset((a), (b) ,sizeof(a)) #define ctos(c) string(1,c) #define print(x) cout<<#x<<" = "<<x<<endl; #define MOD 1000000007 // 入力テスト用 int main(){ ll n,q; cin>>n>>q; if(n<1||n>1000000000000000000LL){ cout << "NG1" << endl; } if(q<1||q>30000){ cout << "NG2" << endl; } rep(i,0,q){ ll a,b; cin>>a>>b; if(a>b){ cout << "NG3" << endl; } if(a<0||a>=1000000000000000000LL){ cout << "NG4" << endl; } if(b<0||b>=1000000000000000000LL){ cout << "NG5" << endl; } } cout << "OK" << endl; return 0; }