結果

問題 No.276 連続する整数の和(1)
ユーザー togaerrortogaerror
提出日時 2015-09-09 15:09:24
言語 Perl
(5.38.2)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 84 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 5,232 KB
実行使用メモリ 4,668 KB
最終ジャッジ日時 2023-09-26 10:14:55
合計ジャッジ時間 766 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,512 KB
testcase_01 AC 3 ms
4,576 KB
testcase_02 AC 2 ms
4,420 KB
testcase_03 AC 3 ms
4,668 KB
testcase_04 AC 2 ms
4,416 KB
testcase_05 AC 3 ms
4,660 KB
testcase_06 AC 2 ms
4,388 KB
testcase_07 AC 3 ms
4,544 KB
testcase_08 AC 3 ms
4,428 KB
testcase_09 AC 3 ms
4,524 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n = <>;

if($n % 2 == 1) {
	print "$n";
} else {
	$n /= 2;
	print "$n\n";
}

exit;
0