結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
24,000 KB
testcase_01 AC 26 ms
23,352 KB
testcase_02 AC 25 ms
23,556 KB
testcase_03 AC 25 ms
23,568 KB
testcase_04 AC 24 ms
23,976 KB
testcase_05 AC 25 ms
23,328 KB
testcase_06 AC 26 ms
23,964 KB
testcase_07 AC 24 ms
23,964 KB
testcase_08 AC 24 ms
24,024 KB
testcase_09 AC 24 ms
24,228 KB
testcase_10 AC 24 ms
23,460 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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==$cr&&($a+$d)%$b==$dr){
			print"! $a $b\n";
		}
	}
}
0