結果
問題 |
No.1729 ~サンプルはちゃんと見て!~ 16進数と8進数(1)
|
ユーザー |
![]() |
提出日時 | 2023-04-27 21:50:47 |
言語 | Perl (5.40.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 5,632 KB |
実行使用メモリ | 5,504 KB |
最終ジャッジ日時 | 2024-11-17 02:49:53 |
合計ジャッジ時間 | 1,332 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 17 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$_=<>;chomp; s/A/12/g; s/B/13/g; s/C/14/g; s/D/15/g; s/E/16/g; s/F/17/g; for $i(split//) {$h{$i}++;} $max = 0; for $i(keys %h){ $max=$h{$_}if$max<$h{$_};} for $i(sort keys %h){push @ans, $i if$max==$h{$_};} print join " ",@ans,$/;