結果
問題 |
No.2224 UFO Game
|
ユーザー |
![]() |
提出日時 | 2023-06-21 10:15:38 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 913 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 20:01:32 |
合計ジャッジ時間 | 1,603 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<stdio.h> #include<stdint.h> int main() { char s[11]; uint64_t i, t = 0; scanf("%s", s); if (s[0] == 'x'){ for (i=1;s[i]!='\0';i++)t=10*t+s[i]-'0'; t=((uint64_t)1<< 32)-t; }else{ for(i=0;s[i]!='\0';i++)t=10*t+s[i]-'0'; } printf("%llu\n",t); return 0; }