結果
問題 |
No.2525 Great Move
|
ユーザー |
|
提出日時 | 2023-11-04 19:16:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 2,314 bytes |
コンパイル時間 | 1,090 ms |
コンパイル使用メモリ | 121,508 KB |
最終ジャッジ日時 | 2025-02-17 19:16:08 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 12 |
ソースコード
/* * * \OoO/ * */ #include <iostream> #include <string> #include <cmath> #include <vector> #include <iomanip> #include <map> #include <numeric> #include <functional> #include <algorithm> #include <set> #include <queue> #include <climits> #include <cstdlib> #include <chrono> #include <random> using namespace std; using ll = long long int; using ld = long double; #define iamtefu ios_base::sync_with_stdio(false); cin.tie(0); #define fl(i,a,n) for (ll i(a); i<n; i++) #define rfl(i,a,n) for (ll i(n-1); i>=a; i--) #define print(a) for (auto x:a){cout<<x<<" ";} cout<<"\n"; #define tt int tt; cin>>tt; for(;tt--;) template <typename L, typename R> inline L chmax(L &a, R b){if (a<b){a=b;return true;}return false;} template <typename L, typename R> inline L chmin(L &a, R b){if (a>b){a=b; return true;} return false;} template <typename L, typename R> ostream& operator<<(ostream &fout, pair<L, R> &p){ fout<<"{"<<p.first<<","<<p.second<<"}"; return fout; } template <typename T> ostream& operator<<(ostream &fout, vector <T> &v){ for (auto &x:v){ fout<<x<<" "; } fout<<"\n"; return fout; } template <typename T> ostream& operator<<(ostream &fout, set <T> &st){ for (auto &x:st){ fout<<x<<" "; } fout<<"\n"; return fout; } template <typename K, typename V> ostream& operator<<(ostream &fout, map<K, V> &mp){ fout<<"["; for (auto &[x,y]:mp){ fout<<x<<":"<<y<<" "; } fout<<"]\n"; return fout; } ll gcd(ll a, ll b){ if (b==0){ return a; } return gcd(b, a%b); } ll pw(ll a, ll b, ll m){ ll res=1; a%=m; while (b){ if (b&1){ res=(res*a)%m; } a=(a*a)%m; b>>=1; } return res; } mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count()); void scn(){ ll h, s; cin>>h>>s; h=abs(h), s=abs(s); if (h%2==s%2){ cout<<"Possible\n"; } else { cout<<"Impossible\n"; } // not necessarily distinct // right down } int main(){ iamtefu; #if defined(airths) auto t1=chrono::high_resolution_clock::now(); freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); #else // #endif // tt { scn(); } #if defined(airths) auto t2=chrono::high_resolution_clock::now(); ld ti=chrono::duration_cast<chrono::nanoseconds>(t2-t1).count(); ti*=1e-6; cerr<<"Time elapsed: "<<setprecision(12)<<ti; cerr<<"ms\n"; #endif return 0; }