結果

問題 No.1255 ハイレーツ・オブ・ボリビアン
ユーザー tailstails
提出日時 2020-10-09 23:15:37
言語 cLay
(20240104-1)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 509 bytes
コンパイル時間 8,046 ms
コンパイル使用メモリ 222,988 KB
実行使用メモリ 10,788 KB
最終ジャッジ日時 2023-09-19 01:37:39
合計ジャッジ時間 9,191 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
10,644 KB
testcase_01 AC 10 ms
10,576 KB
testcase_02 AC 10 ms
10,584 KB
testcase_03 AC 10 ms
10,560 KB
testcase_04 AC 10 ms
10,708 KB
testcase_05 AC 11 ms
10,632 KB
testcase_06 AC 10 ms
10,564 KB
testcase_07 AC 10 ms
10,744 KB
testcase_08 AC 21 ms
10,636 KB
testcase_09 AC 22 ms
10,500 KB
testcase_10 AC 22 ms
10,508 KB
testcase_11 AC 21 ms
10,496 KB
testcase_12 AC 21 ms
10,500 KB
testcase_13 AC 11 ms
10,496 KB
testcase_14 AC 59 ms
10,632 KB
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-1);
		ll m=Divisor(e,d);
		//wtF("n={n} e={e}\n");
		modint x;
		x.setmod(2n-1);
		x=2;
		rep[d](j,m){
			//wt(" j=",j,x**j);
			if(x**j==1){
				wt(j);
				break_continue;
			}
		}
		rep(j,1,1d8){
			if(x**j==1){
				wt(j);
				break_continue;
			}
		}
		wt(0);
	}
}
0