結果
問題 |
No.2224 UFO Game
|
ユーザー |
![]() |
提出日時 | 2023-04-24 01:09:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 619 ms |
コンパイル使用メモリ | 39,764 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-08 05:56:21 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
/* -*- coding: utf-8 -*- * * 2224.cc: No.2224 UFO Game - yukicoder */ #include<cstdio> #include<cstdlib> #include<algorithm> using namespace std; /* constant */ /* typedef */ /* global variables */ /* subroutines */ /* main */ int main() { char s[16]; scanf("%s", s); if (s[0] == 'x') { s[0] = '-'; printf("%u\n", (unsigned)atoi(s)); } else puts(s); return 0; }