結果
問題 | No.1255 ハイレーツ・オブ・ボリビアン |
ユーザー | 👑 Nachia |
提出日時 | 2020-10-09 23:14:38 |
言語 | cLay (20240104-1) |
結果 |
AC
|
実行時間 | 864 ms / 2,000 ms |
コード長 | 229 bytes |
コンパイル時間 | 2,239 ms |
コンパイル使用メモリ | 167,660 KB |
実行使用メモリ | 5,064 KB |
最終ジャッジ日時 | 2023-09-19 01:37:54 |
合計ジャッジ時間 | 7,638 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,376 KB |
testcase_01 | AC | 3 ms
4,376 KB |
testcase_02 | AC | 4 ms
4,380 KB |
testcase_03 | AC | 4 ms
4,376 KB |
testcase_04 | AC | 5 ms
4,380 KB |
testcase_05 | AC | 110 ms
4,580 KB |
testcase_06 | AC | 145 ms
4,604 KB |
testcase_07 | AC | 122 ms
4,888 KB |
testcase_08 | AC | 538 ms
4,848 KB |
testcase_09 | AC | 540 ms
5,064 KB |
testcase_10 | AC | 537 ms
4,884 KB |
testcase_11 | AC | 552 ms
4,848 KB |
testcase_12 | AC | 550 ms
4,872 KB |
testcase_13 | AC | 31 ms
4,884 KB |
testcase_14 | AC | 864 ms
4,900 KB |
testcase_15 | AC | 538 ms
4,896 KB |
コンパイルメッセージ
main.cpp: In function ‘long long int L()’: main.cpp:228:45: warning: control reaches end of non-void function [-Wreturn-type] unordered_map<long long,long long> X(40000); ^
ソースコード
ll T,N,p,q;ll L(){if(N==1)return 1;N+=N-1;unordered_map<ll,ll>X(4d4);p=1;rep(i,4d4)X[p]=i,p=p*2%N,if(p==1)return i+1;p=q=1;rep(i,4d4)q=q*(N/2+1)%N;rep(i,6d4)p=p*q%N,if(X.count(p))return(i+1)*4d4+X[p];}{rd(T);REP(T)rd(N),wt(L());}