結果

問題 No.2357 Guess the Function
ユーザー tailstails
提出日時 2023-06-23 22:16:28
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 24,396 KB
平均クエリ数 3.27
最終ジャッジ日時 2023-09-13 17:17:31
合計ジャッジ時間 1,311 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 29 ms
23,460 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 25 ms
24,336 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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