結果

問題 No.1140 EXPotentiaLLL!
ユーザー tailstails
提出日時 2020-07-31 21:37:55
言語 cLay
(20240104-1)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 2,655 ms
コンパイル使用メモリ 170,428 KB
実行使用メモリ 9,920 KB
最終ジャッジ日時 2023-09-19 00:53:16
合計ジャッジ時間 8,448 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
9,764 KB
testcase_01 AC 59 ms
9,764 KB
testcase_02 AC 61 ms
9,776 KB
testcase_03 AC 101 ms
9,760 KB
testcase_04 AC 81 ms
9,764 KB
testcase_05 AC 120 ms
9,764 KB
testcase_06 AC 115 ms
9,920 KB
testcase_07 AC 136 ms
9,780 KB
testcase_08 AC 12 ms
8,756 KB
testcase_09 AC 12 ms
8,748 KB
testcase_10 AC 12 ms
8,744 KB
testcase_11 AC 12 ms
8,752 KB
testcase_12 AC 13 ms
8,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int pa[1d6],pn;
ll t,a,p;
{
	pn=Prime(5d6,pa);
	rd(t);
	rep(t){
		rd(a,p);
		if(*lower_bound(pa,pa+pn,p)==p){
			wt(a%p?1:0);
		}else{
			wt(-1);
		}
	}
}
0