結果

問題 No.2224 UFO Game
ユーザー 阿部由暉阿部由暉
提出日時 2023-04-21 05:47:22
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 30,208 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-23 21:49:37
合計ジャッジ時間 1,098 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 1 ms
5,376 KB
testcase_04 WA -
testcase_05 AC 1 ms
5,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 1 ms
5,376 KB
testcase_09 WA -
testcase_10 AC 1 ms
5,376 KB
testcase_11 WA -
testcase_12 AC 1 ms
5,376 KB
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <math.h>

int main(void)
{
    long long int number;
    int res;

    scanf("%lld\n",&number);
   
    res = (long long int)pow(2,32.0) - number;

    if(number < pow(2,31.0))
    {
        printf("%ld\n",number);
    }

    else
    {
        printf("x%ld\n",res);
    }

    return 0;
}
0