結果

問題 No.570 3人兄弟(その1)
ユーザー motimoti
提出日時 2018-05-15 00:12:51
言語 Perl
(5.38.2)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 5,160 KB
最終ジャッジ日時 2023-09-10 20:48:47
合計ジャッジ時間 655 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#!/usr/bin/env perl

use strict;
use utf8;
use warnings;


if ($0 eq __FILE__) {
  my @arr;
  my $i = 0;
  my @abc = ('A'...'C');
  while (defined(my $line = <STDIN>)) {
    chomp($line);
    push @arr, [$line, $abc[$i]];
    $i++;
  }
  @arr = sort {$b->[0] <=> $a->[0]} @arr;
  printf("$arr[0][1]\n$arr[1][1]\n$arr[2][1]\n");
}
0