結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 00:56:47
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 791 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 668 ms
コンパイル使用メモリ 134,732 KB
実行使用メモリ 157,256 KB
最終ジャッジ日時 2024-05-03 13:17:32
合計ジャッジ時間 24,165 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 379 ms
138,088 KB
testcase_01 AC 377 ms
138,344 KB
testcase_02 AC 371 ms
138,092 KB
testcase_03 AC 378 ms
138,088 KB
testcase_04 AC 379 ms
138,088 KB
testcase_05 AC 383 ms
138,348 KB
testcase_06 AC 384 ms
138,348 KB
testcase_07 AC 375 ms
138,348 KB
testcase_08 AC 367 ms
138,344 KB
testcase_09 AC 372 ms
138,092 KB
testcase_10 AC 372 ms
138,216 KB
testcase_11 AC 364 ms
138,220 KB
testcase_12 AC 370 ms
138,344 KB
testcase_13 AC 373 ms
138,216 KB
testcase_14 AC 371 ms
138,348 KB
testcase_15 AC 364 ms
138,216 KB
testcase_16 AC 669 ms
152,640 KB
testcase_17 AC 731 ms
155,756 KB
testcase_18 AC 433 ms
143,208 KB
testcase_19 AC 769 ms
155,872 KB
testcase_20 AC 510 ms
144,620 KB
testcase_21 AC 480 ms
142,956 KB
testcase_22 AC 676 ms
152,880 KB
testcase_23 AC 565 ms
147,052 KB
testcase_24 AC 661 ms
152,156 KB
testcase_25 AC 478 ms
143,468 KB
testcase_26 AC 611 ms
148,264 KB
testcase_27 AC 763 ms
156,984 KB
testcase_28 AC 619 ms
149,560 KB
testcase_29 AC 717 ms
154,880 KB
testcase_30 AC 624 ms
149,620 KB
testcase_31 AC 498 ms
143,848 KB
testcase_32 AC 490 ms
143,848 KB
testcase_33 AC 791 ms
156,832 KB
testcase_34 AC 458 ms
142,952 KB
testcase_35 AC 664 ms
152,412 KB
testcase_36 AC 782 ms
157,252 KB
testcase_37 AC 753 ms
157,132 KB
testcase_38 AC 752 ms
157,256 KB
testcase_39 AC 781 ms
157,252 KB
testcase_40 AC 789 ms
157,252 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/perl
# yukicoder My Practice
# author: Leonardone @ NEETSDKASU

my $n = $*IN.get;
my @a = $*IN.get.words;
my $mx = 0;
my $ans = 0;

for @a {
	my $v = $_.Int;
	$mx = max($mx, $v);
	if $ans < $v && $v < $mx {
		$ans = $v;
	}
}

say $ans;
0