結果

問題 No.2224 UFO Game
ユーザー AhmadovAhmadov
提出日時 2023-03-15 16:52:17
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,019 bytes
コンパイル時間 1,567 ms
コンパイル使用メモリ 170,784 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-18 12:27:41
合計ジャッジ時間 2,346 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 2 ms
4,348 KB
testcase_09 AC 2 ms
4,348 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 2 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define boost   ios::sync_with_stdio(0);cin.tie(0);
#define file    freopen("in.txt","r",stdin); freopen("out.txt","w",stdout);

#define pb  push_back
#define mp  make_pair
#define ins insert
#define int long long
#define uint unsigned long long

#define pii pair<int,int>
#define st  set<int>

#define get(arr)  for(auto& v:arr){cin>>v;}
#define all(x)   (x).begin(),(x).end()
#define sz(x)    (x).size()
#define fix(a,b) setprecision(a)<<fixed<<(b)
#define drop(x)  cout<<(x)<<endl;return;
#define print(x,a,b) for(auto v:(x)){cout<<(v)<<(a);}cout<<(b)
#define INF 1e9
string alpha="abcdefghijklmnopqrstuvwxyz";
const long long mod=12345;
int _case=1;

map<int,vector<int>> arr;


void _(){
    string s;
    cin>>s;
    if(s[0]=='x'){
        uint x=pow(2,32);
        drop(x- stoll(s.substr(1,sz(s))));
    }
    else{
        drop(s);
    }
}

signed main(){
    boost;
    // file;
    int T=1;
    // cin>>T;
    while(T--){
        _();
        // _case++;
    }
}
0