結果

問題 No.352 カード並べ
ユーザー tailstails
提出日時 2016-03-11 23:35:13
言語 Perl
(5.38.2)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 5,412 KB
実行使用メモリ 5,672 KB
最終ジャッジ日時 2023-10-25 06:00:05
合計ジャッジ時間 683 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

$y=1;
for$h(2..<>){
	$x=0;
	$c=0;
	for$i(1..$h-1){
		$x+=1;
		$c+=1;
		for$j(1..$i-1){
			$x+=$i*$j;
			$c+=1;
		}
	}
	$y+=$x/$c;
}
print $y;
0