結果
| 問題 |
No.2224 UFO Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-31 19:00:26 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 757 ms |
| コンパイル使用メモリ | 79,300 KB |
| 実行使用メモリ | 7,324 KB |
| 最終ジャッジ日時 | 2025-03-31 19:00:28 |
| 合計ジャッジ時間 | 1,852 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <iostream>
#include <cstdint>
using namespace std;
static inline uint32_t solve(const string& S)
{
if (S[0] != 'x')
return stoul(S);
else
return -stoul(S.substr(1));
}
int main()
{
cin.tie(nullptr);
ios::sync_with_stdio(false);
string S;
S.reserve(11);
cin >> S;
cout << solve(S) << '\n';
return 0;
}