結果
| 問題 | No.2224 UFO Game |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-10-28 03:34:45 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 424 bytes |
| 記録 | |
| コンパイル時間 | 401 ms |
| コンパイル使用メモリ | 80,356 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-06-28 08:23:57 |
| 合計ジャッジ時間 | 2,026 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}