結果

問題 No.2357 Guess the Function
ユーザー tails
提出日時 2023-06-23 22:16:28
言語 Perl
(5.40.0)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 25,544 KB
平均クエリ数 3.27
最終ジャッジ日時 2024-07-01 01:59:56
合計ジャッジ時間 1,245 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 2 WA * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::rc" used only once: possible typo at Main.pl line 10.
Main.pl syntax OK

ソースコード

diff #

++$|;
$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==$rc&&($a+$d)%$b==$dr){
			print"! $a $b\n";
		}
	}
}
0