結果

問題 No.2224 UFO Game
ユーザー meme
提出日時 2023-04-27 22:17:22
言語 PHP
(8.3.4)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 2,005 ms
コンパイル使用メモリ 30,632 KB
実行使用メモリ 31,072 KB
最終ジャッジ日時 2024-04-28 11:46:55
合計ジャッジ時間 1,590 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
30,768 KB
testcase_01 AC 37 ms
30,804 KB
testcase_02 AC 40 ms
30,572 KB
testcase_03 AC 38 ms
31,072 KB
testcase_04 AC 38 ms
30,740 KB
testcase_05 AC 38 ms
30,944 KB
testcase_06 AC 36 ms
31,024 KB
testcase_07 AC 36 ms
30,652 KB
testcase_08 AC 35 ms
30,696 KB
testcase_09 AC 34 ms
30,744 KB
testcase_10 AC 37 ms
30,796 KB
testcase_11 AC 38 ms
30,928 KB
testcase_12 AC 37 ms
30,812 KB
testcase_13 AC 36 ms
30,956 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
	$input = trim(fgets(STDIN));
	
	$left = substr($input,0,1);
	
	if($left === 'x'){
		$t = 2 ** 32 - (int)substr($input,1);
	}else{
		$t = (int)$input;
	}
	
	echo $t;
?>
0