結果
| 問題 | No.2124 Guess the Permutation |
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2022-11-18 23:27:54 |
| 言語 | Perl (5.40.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 28,368 KB |
| 平均クエリ数 | 374.60 |
| 最終ジャッジ日時 | 2024-09-20 03:55:30 |
| 合計ジャッジ時間 | 1,175 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
コンパイルメッセージ
Main.pl syntax OK
ソースコード
$n=<>;
if(fork){
$s=$n*($n+1)/2;
for(reverse 2..$n-1){
$p[$_]=$s+0-($s=<>);
}
$p[1]=<>-$p[2];
$p[0]=$s-$p[1];
print"! @p\n";
}else{
for(reverse 2..$n-1){
print"? 1 $_\n";
}
print"? 2 3\n";
$|=1;
}
tails