結果

問題 No.522 Make Test Cases(テストケースを作る)
ユーザー %20%20
提出日時 2017-06-02 22:30:10
言語 Perl
(5.38.2)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 99 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 5,252 KB
実行使用メモリ 5,268 KB
最終ジャッジ日時 2023-10-22 00:35:01
合計ジャッジ時間 2,406 ms
ジャッジサーバーID
(参考情報)
judge10 / judge9
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

$N=<>;
for$a(1..$N-2){
	for$b($a..$N-1){
		$c=$N-($a+$b);
		last if$c<$b;
		print"$a $b $c\n"
	}
}
0