結果
| 問題 | No.2224 UFO Game |
| コンテスト | |
| ユーザー |
Kome_soudou
|
| 提出日時 | 2023-02-24 21:28:09 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 296µs | |
| コード長 | 357 bytes |
| 記録 | |
| コンパイル時間 | 923 ms |
| コンパイル使用メモリ | 179,936 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-25 22:55:13 |
| 合計ジャッジ時間 | 2,115 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main()
{
string s;
cin >> s;
ll ans = 0;
ll cnt = 1;
for(int i = 0; i < 32; i++) cnt *= 2;
if(s[0] == 'x')
{
for(int i = 1; i < (int)s.size(); i++)
{
ans *= 10;
ans += s[i] - '0';
}
ans = cnt - ans;
cout << ans << endl;
}
else cout << s << endl;
return 0;
}
Kome_soudou