結果
問題 | No.2224 UFO Game |
ユーザー |
|
提出日時 | 2023-02-24 21:27:53 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,099 bytes |
コンパイル時間 | 3,175 ms |
コンパイル使用メモリ | 247,836 KB |
最終ジャッジ日時 | 2025-02-10 20:28:59 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<bits/extc++.h> #include<atcoder/modint> using namespace __gnu_pbds; using namespace std; using namespace atcoder; using ll = long long; using ull = unsigned long long; using Mint = modint998244353; using mint = modint; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i) #define rep2(i, a, b) for (int i = (int)a; i < (int)(b); ++i) #define rrep2(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); --i) template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } constexpr int dx[] = {-1,0,1,0}; constexpr int dy[] = {0,-1,0,1}; constexpr int MAX_N = 100000; //ダイクストラ法:makedijkstra //エラトステネスの篩:makesieve //テストケースが複数の場合:multest int main(){ cin.tie(nullptr); std::ios_base::sync_with_stdio(false); string S; cin >> S; if(S[0] == 'x') cout << (1ULL<<32) - stoull(S.substr(1)) << '\n'; else cout << S << '\n'; return 0; }