結果

問題 No.2125 Inverse Sum
ユーザー tailstails
提出日時 2022-11-21 18:03:15
言語 cLay
(20240104-1)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 8,779 ms
コンパイル使用メモリ 221,580 KB
実行使用メモリ 13,600 KB
最終ジャッジ日時 2023-10-22 08:02:39
合計ジャッジ時間 10,698 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
13,000 KB
testcase_01 AC 11 ms
13,000 KB
testcase_02 AC 11 ms
13,000 KB
testcase_03 AC 10 ms
13,000 KB
testcase_04 AC 11 ms
13,000 KB
testcase_05 AC 11 ms
13,008 KB
testcase_06 AC 11 ms
13,000 KB
testcase_07 AC 18 ms
13,000 KB
testcase_08 AC 11 ms
13,000 KB
testcase_09 AC 11 ms
13,000 KB
testcase_10 AC 11 ms
13,000 KB
testcase_11 AC 11 ms
13,000 KB
testcase_12 AC 11 ms
13,000 KB
testcase_13 AC 11 ms
13,000 KB
testcase_14 AC 12 ms
13,000 KB
testcase_15 AC 10 ms
13,000 KB
testcase_16 AC 11 ms
13,000 KB
testcase_17 AC 11 ms
13,000 KB
testcase_18 AC 11 ms
13,000 KB
testcase_19 AC 11 ms
13,000 KB
testcase_20 AC 11 ms
13,000 KB
testcase_21 AC 11 ms
13,000 KB
testcase_22 AC 11 ms
13,000 KB
testcase_23 AC 11 ms
13,000 KB
testcase_24 AC 15 ms
13,000 KB
testcase_25 AC 15 ms
13,000 KB
testcase_26 AC 11 ms
13,000 KB
testcase_27 AC 18 ms
13,600 KB
testcase_28 AC 17 ms
13,600 KB
testcase_29 AC 17 ms
13,420 KB
testcase_30 AC 11 ms
13,000 KB
testcase_31 AC 17 ms
13,600 KB
testcase_32 AC 14 ms
13,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@p,@q,b[2d5],v[2d5],n=Divisor(q*q,b),t=0;
rep(i,n){
	ll x=b[i];
	if((x+q)%p+(q*q/x+q)%p<1){
		v[t++]=(x+q)/p;
	}
}
wt(t);
rep(i,t)wt(v[i],v[t+~i]);
0