結果

問題 No.365 ジェンガソート
ユーザー LeonardoneLeonardone
提出日時 2016-05-01 00:58:50
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 679 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 145,424 KB
実行使用メモリ 157,948 KB
最終ジャッジ日時 2024-05-03 13:16:12
合計ジャッジ時間 23,031 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 426 ms
137,316 KB
testcase_01 AC 418 ms
137,192 KB
testcase_02 AC 436 ms
137,320 KB
testcase_03 AC 424 ms
135,648 KB
testcase_04 AC 415 ms
137,320 KB
testcase_05 AC 434 ms
137,188 KB
testcase_06 AC 428 ms
137,060 KB
testcase_07 AC 428 ms
137,572 KB
testcase_08 AC 426 ms
137,316 KB
testcase_09 AC 423 ms
137,320 KB
testcase_10 AC 419 ms
137,320 KB
testcase_11 AC 428 ms
137,444 KB
testcase_12 AC 419 ms
135,776 KB
testcase_13 AC 427 ms
137,048 KB
testcase_14 AC 422 ms
137,192 KB
testcase_15 AC 413 ms
137,320 KB
testcase_16 AC 661 ms
153,156 KB
testcase_17 AC 601 ms
156,112 KB
testcase_18 AC 453 ms
140,288 KB
testcase_19 AC 621 ms
155,972 KB
testcase_20 AC 493 ms
144,480 KB
testcase_21 AC 480 ms
141,832 KB
testcase_22 AC 574 ms
151,740 KB
testcase_23 AC 528 ms
145,804 KB
testcase_24 AC 559 ms
152,364 KB
testcase_25 AC 479 ms
141,916 KB
testcase_26 AC 533 ms
148,264 KB
testcase_27 AC 621 ms
157,812 KB
testcase_28 AC 546 ms
148,644 KB
testcase_29 AC 590 ms
155,224 KB
testcase_30 AC 557 ms
149,328 KB
testcase_31 AC 509 ms
142,584 KB
testcase_32 AC 490 ms
141,904 KB
testcase_33 AC 603 ms
157,656 KB
testcase_34 AC 489 ms
142,336 KB
testcase_35 AC 569 ms
152,256 KB
testcase_36 AC 614 ms
157,688 KB
testcase_37 AC 616 ms
157,820 KB
testcase_38 AC 615 ms
157,948 KB
testcase_39 AC 679 ms
157,688 KB
testcase_40 AC 620 ms
157,736 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;
	if $v > $mx {
		$mx = $v;
	} elsif $ans < $v && $v < $mx {
		$ans = $v;
	}
}

say $ans;
0