結果
問題 | No.332 数列をプレゼントに |
ユーザー | tails |
提出日時 | 2015-12-25 00:12:59 |
言語 | Perl (5.38.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 581 ms |
コンパイル使用メモリ | 5,440 KB |
実行使用メモリ | 9,944 KB |
最終ジャッジ日時 | 2023-10-19 02:58:58 |
合計ジャッジ時間 | 8,830 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
5,676 KB |
testcase_01 | AC | 3 ms
5,644 KB |
testcase_02 | AC | 3 ms
5,644 KB |
testcase_03 | WA | - |
testcase_04 | AC | 4 ms
5,660 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 4 ms
5,656 KB |
testcase_08 | WA | - |
testcase_09 | AC | 3 ms
5,648 KB |
testcase_10 | AC | 4 ms
5,668 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 4 ms
5,672 KB |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | AC | 4 ms
5,672 KB |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | AC | 4 ms
5,676 KB |
testcase_32 | WA | - |
testcase_33 | AC | 19 ms
5,672 KB |
testcase_34 | AC | 4 ms
5,672 KB |
testcase_35 | AC | 3 ms
5,672 KB |
testcase_36 | AC | 3 ms
5,644 KB |
testcase_37 | AC | 4 ms
5,764 KB |
testcase_38 | WA | - |
testcase_39 | AC | 4 ms
5,764 KB |
testcase_40 | AC | 4 ms
5,760 KB |
testcase_41 | AC | 4 ms
5,768 KB |
testcase_42 | TLE | - |
testcase_43 | -- | - |
testcase_44 | -- | - |
testcase_45 | -- | - |
testcase_46 | -- | - |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
($n,$x)=<>=~/\d+/g; $y+=$_ for @a=<>=~//g; @i=sort{$a[$b]<=>$a[$a]}0..$n-1; sub f{ my($i,$s,$t,$h)=@_; if($i==$n){ print$h; exit; } $v=$a[$i[$i]]; if($s-$v>=0){ f($i+1,$s-$v,$t,$h."o"); } if($t-$v>=0){ f($i+1,$s,$t-$v,$h."x"); } } f(0,$x,$y-$x); print"No"