結果

問題 No.276 連続する整数の和(1)
ユーザー ねずねず
提出日時 2018-01-25 00:18:04
言語 PHP8
(8.1.3)
結果
AC  
実行時間 7 ms / 1,000 ms
コード長 66 bytes
コンパイル時間 303 ms
使用メモリ 10,540 KB
最終ジャッジ日時 2023-01-14 21:48:56
合計ジャッジ時間 1,206 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 6 ms
10,528 KB
testcase_01 AC 7 ms
10,536 KB
testcase_02 AC 6 ms
10,540 KB
testcase_03 AC 6 ms
10,452 KB
testcase_04 AC 7 ms
10,492 KB
testcase_05 AC 6 ms
10,508 KB
testcase_06 AC 6 ms
10,496 KB
testcase_07 AC 7 ms
10,432 KB
testcase_08 AC 6 ms
10,428 KB
testcase_09 AC 7 ms
10,492 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$a = trim(fgets(STDIN));
print $a % 2 == 0 ? $a / 2 : $a;
?>
0