結果

問題 No.2755 行列の共役類
ユーザー 👑 p-adicp-adic
提出日時 2023-03-24 11:09:09
言語 cLay
(20240420-1)
結果
AC  
実行時間 2,149 ms / 3,500 ms
コード長 514 bytes
コンパイル時間 3,142 ms
コンパイル使用メモリ 173,588 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-04-17 16:34:01
合計ジャッジ時間 19,387 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 18 ms
5,376 KB
testcase_04 AC 17 ms
5,376 KB
testcase_05 AC 10 ms
5,376 KB
testcase_06 AC 6 ms
5,376 KB
testcase_07 AC 29 ms
5,376 KB
testcase_08 AC 15 ms
5,376 KB
testcase_09 AC 11 ms
5,376 KB
testcase_10 AC 7 ms
5,376 KB
testcase_11 AC 6 ms
5,376 KB
testcase_12 AC 3 ms
5,376 KB
testcase_13 AC 35 ms
5,376 KB
testcase_14 AC 10 ms
5,376 KB
testcase_15 AC 8 ms
5,376 KB
testcase_16 AC 5 ms
5,376 KB
testcase_17 AC 27 ms
5,376 KB
testcase_18 AC 10 ms
5,376 KB
testcase_19 AC 5 ms
5,376 KB
testcase_20 AC 30 ms
5,376 KB
testcase_21 AC 50 ms
5,376 KB
testcase_22 AC 15 ms
5,376 KB
testcase_23 AC 16 ms
5,376 KB
testcase_24 AC 14 ms
5,376 KB
testcase_25 AC 9 ms
5,376 KB
testcase_26 AC 7 ms
5,376 KB
testcase_27 AC 39 ms
5,376 KB
testcase_28 AC 51 ms
5,376 KB
testcase_29 AC 15 ms
5,376 KB
testcase_30 AC 53 ms
5,376 KB
testcase_31 AC 54 ms
5,376 KB
testcase_32 AC 28 ms
5,376 KB
testcase_33 AC 9 ms
5,376 KB
testcase_34 AC 12 ms
5,376 KB
testcase_35 AC 7 ms
5,376 KB
testcase_36 AC 6 ms
5,376 KB
testcase_37 AC 10 ms
5,376 KB
testcase_38 AC 14 ms
5,376 KB
testcase_39 AC 26 ms
5,376 KB
testcase_40 AC 37 ms
5,376 KB
testcase_41 AC 39 ms
5,376 KB
testcase_42 AC 95 ms
5,376 KB
testcase_43 AC 51 ms
5,376 KB
testcase_44 AC 14 ms
5,376 KB
testcase_45 AC 16 ms
5,376 KB
testcase_46 AC 6 ms
5,376 KB
testcase_47 AC 10 ms
5,376 KB
testcase_48 AC 76 ms
5,376 KB
testcase_49 AC 3 ms
5,376 KB
testcase_50 AC 14 ms
5,376 KB
testcase_51 AC 4 ms
5,376 KB
testcase_52 AC 5 ms
5,376 KB
testcase_53 AC 1,699 ms
5,888 KB
testcase_54 AC 852 ms
5,376 KB
testcase_55 AC 568 ms
5,376 KB
testcase_56 AC 1,799 ms
6,144 KB
testcase_57 AC 900 ms
5,376 KB
testcase_58 AC 1,819 ms
6,144 KB
testcase_59 AC 910 ms
5,376 KB
testcase_60 AC 1,437 ms
6,272 KB
testcase_61 AC 4 ms
5,376 KB
testcase_62 AC 2,149 ms
6,272 KB
testcase_63 AC 1,072 ms
5,376 KB
testcase_64 AC 717 ms
5,376 KB
testcase_65 AC 6 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize( "unroll-loops" )
{
ll@B,@C,b=B,P[4],e=1,n=0,u[B],d,a=0,q,r,c,s,t;
rep(i,2,B){if(i*i>b)break;if(b%i<1){b/=i;P[n++]=i;e*=i-1;while(b%i<1)b/=i,e*=i;}}
if(b>1)P[n++]=b,e*=b-1;
modint x;x.setmod(B);
rep(i,B)u[i]=(x=i).pw(e-1);
d=B/C;b=d*B;ll F[b]={};
rep(i,b){
	if(F[i])continue;
	q=i/d;r=i%d;c=1;
	rep[P](p,n)c*=q%p;
	if(c<1)continue;
	a++;
	if(a>100)wt("100+"),exit(0);
	rep(j,b){
		s=j/d;t=j%d;c=1;
		rep[P](p,n)c*=s%p;
		F[u[s]*q*s%B*d+u[s]*(q*t+r-t)%d]|=c;
	}
}
wt(a);
}
0