結果

問題 No.1255 ハイレーツ・オブ・ボリビアン
ユーザー tailstails
提出日時 2020-10-09 23:06:52
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 431 bytes
コンパイル時間 7,906 ms
コンパイル使用メモリ 222,536 KB
実行使用メモリ 10,896 KB
最終ジャッジ日時 2023-09-19 01:36:49
合計ジャッジ時間 11,148 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
10,420 KB
testcase_01 AC 10 ms
10,624 KB
testcase_02 AC 12 ms
10,448 KB
testcase_03 AC 12 ms
10,408 KB
testcase_04 AC 12 ms
10,428 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll euler(ll a){
	ll p=a;
	ll i=2;
	while(a>1){
		if(a%i==0){
			p-=p/i;
		}
		while(a%i==0){
			a/=i;
		}
		++i;
		if(i*i>a){
			i=a;
		}
	}
	return p;
}

ll d[1000];

{
	ll @t;
	rep(t){
		ll @n;
		ll e=euler(2n);
		ll m=Divisor(e,d);
		modint x;
		x.setmod(2n-1);
		x=2;
		rep[d](j,m){
			if(x**j==1){
				wt(j);
				break_continue;
			}
		}
		rep(j,1,10000){
			if(x**j==1){
				wt(j);
				break_continue;
			}
		}
		wt(0);
	}
}
0