結果

問題 No.111 あばばばば
ユーザー togaerrortogaerror
提出日時 2015-04-06 01:46:48
言語 Perl
(5.38.2)
結果
TLE  
実行時間 -
コード長 180 bytes
コンパイル時間 324 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 9,336 KB
最終ジャッジ日時 2023-09-17 05:57:51
合計ジャッジ時間 6,852 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
5,004 KB
testcase_01 AC 4 ms
4,832 KB
testcase_02 AC 10 ms
4,904 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/perl

use strict;
use warnings;

my $l = <>;
$l = int ($l / 2);
my $ans = 0;
for(my $i = 0; $i < $l; $i++) {
	$ans += $i;
}
$ans *= 2;
$ans += $l;
print "$ans\n";

exit;
0