結果
| 問題 |
No.2224 UFO Game
|
| コンテスト | |
| ユーザー |
AngrySadEight
|
| 提出日時 | 2022-10-28 03:34:45 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 424 bytes |
| コンパイル時間 | 607 ms |
| コンパイル使用メモリ | 67,604 KB |
| 最終ジャッジ日時 | 2025-02-08 13:23:07 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 RE * 1 |
ソースコード
#include <iostream>
#include <string>
#include <cassert>
using namespace std;
typedef long long ll;
int main(){
string S;
cin >> S;
ll ans;
if (S[0] == 'x'){
int len = S.size();
string T = S.substr(1, len - 1);
ans = (1LL << 32) - stoll(T);
}
else{
ans = stoll(S);
}
assert(ans >= 0 && ans <= 3616918520);
assert(ans % 10 == 0);
cout << ans << endl;
}
AngrySadEight