結果
問題 | No.2124 Guess the Permutation |
ユーザー |
![]() |
提出日時 | 2022-11-18 21:33:56 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 374.60 |
最終ジャッジ日時 | 2024-09-20 01:58:27 |
合計ジャッジ時間 | 1,252 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$|=1;$n=<>;$s=$n*($n+1)/2;for(reverse 2..$n-1){print"? 1 $_\n";$p[$_]=$s+0-($s=<>);}print"? 2 3\n";$p[1]=<>-$p[2];$p[0]=$s-$p[1];print"! @p\n";