結果

問題 No.2357 Guess the Function
ユーザー tailstails
提出日時 2023-06-24 02:23:37
言語 Perl
(5.38.2)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 213 bytes
コンパイル時間 372 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 29,676 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-13 21:36:57
合計ジャッジ時間 2,087 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
29,036 KB
testcase_01 AC 26 ms
29,524 KB
testcase_02 AC 26 ms
29,232 KB
testcase_03 AC 26 ms
28,908 KB
testcase_04 AC 27 ms
29,144 KB
testcase_05 AC 25 ms
28,792 KB
testcase_06 AC 27 ms
29,144 KB
testcase_07 AC 26 ms
28,900 KB
testcase_08 AC 27 ms
29,292 KB
testcase_09 AC 26 ms
29,676 KB
testcase_10 AC 25 ms
29,324 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

exit if fork;
exit if fork;
++$|;
$c=100;
print"? $c\n";
$cr=<>;
$d=$cr<50?99-$cr*2:1;
print"? $d\n";
$dr=<>;
for$a(0..99){
	for$b($a+1..100){
		if(($a+$c)%$b==$cr&&($a+$d)%$b==$dr){
			print"! $a $b\n";
		}
	}
}
0