結果
| 問題 | No.1031 いたずら好きなお姉ちゃん |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2020-12-15 19:41:05 |
| 言語 | Perl (5.42.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 222 bytes |
| 記録 | |
| コンパイル時間 | 104 ms |
| コンパイル使用メモリ | 7,844 KB |
| 実行使用メモリ | 32,512 KB |
| 最終ジャッジ日時 | 2026-04-08 14:33:04 |
| 合計ジャッジ時間 | 18,107 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 52 WA * 1 |
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 4. Possible precedence problem on bitwise ^ operator at Main.pl line 7. Unquoted string "a" may clash with future reserved word at Main.pl line 11. Unquoted string "b" may clash with future reserved word at Main.pl line 11. Main.pl syntax OK
ソースコード
<>;
@a=glob<>;
map{
$x=$a[$i++]<$_|0;
$y=$x^1;
$\+=push@$x,$i-1;
pop@$y while@$y&&$a[$$y[-1]]<$_^$y;
if(@$y){
$j=$$y[-1];
$a=-1;$b=@$x;
${$$x[$c]<$j?a:b}=$c=$a+$b>>1while$a+1<$b;
$\-=$b;
}
}@a[1..$#a];
print
tails