結果

問題 No.1986 Yummy
ユーザー SKSK
提出日時 2022-12-20 17:44:33
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 89 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 31,064 KB
実行使用メモリ 31,284 KB
最終ジャッジ日時 2024-04-29 02:52:26
合計ジャッジ時間 2,020 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
30,712 KB
testcase_01 AC 43 ms
31,116 KB
testcase_02 AC 40 ms
31,020 KB
testcase_03 AC 40 ms
31,284 KB
testcase_04 AC 42 ms
30,952 KB
testcase_05 AC 41 ms
30,844 KB
testcase_06 AC 41 ms
31,044 KB
testcase_07 AC 41 ms
30,980 KB
testcase_08 AC 41 ms
30,936 KB
testcase_09 AC 41 ms
30,896 KB
testcase_10 AC 41 ms
30,880 KB
testcase_11 AC 39 ms
31,104 KB
testcase_12 AC 41 ms
31,196 KB
testcase_13 AC 40 ms
30,816 KB
testcase_14 AC 39 ms
30,680 KB
testcase_15 AC 40 ms
30,916 KB
testcase_16 AC 40 ms
30,676 KB
testcase_17 AC 40 ms
30,808 KB
testcase_18 AC 41 ms
31,064 KB
testcase_19 AC 40 ms
30,904 KB
testcase_20 AC 40 ms
30,908 KB
testcase_21 AC 41 ms
30,940 KB
testcase_22 AC 41 ms
31,156 KB
testcase_23 AC 40 ms
30,792 KB
testcase_24 AC 40 ms
30,892 KB
testcase_25 AC 39 ms
31,072 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));

if($n % 2 == 1){
    echo 1;
}else{
    echo $n/2;
}


?>
0