QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#480990#144. Primitive root / 原根yyyyxh#6 0ms1808kbC++14828b2024-07-16 19:59:372024-07-16 19:59:38

Judging History

你现在查看的是最新测评结果

  • [2024-07-16 19:59:38]
  • 评测
  • 测评结果:6
  • 用时:0ms
  • 内存:1808kb
  • [2024-07-16 19:59:37]
  • 提交

answer

#include <cstdio>
using namespace std;
typedef long long ll;
typedef __int128 lll;
ll n,phi=1;
ll pr[100];int rk;
void getfac(ll x){
	rk=0;
	for(int i=2;i*i<=x;++i)
		if(x%i==0){
			do x/=i;while(x%i==0);
			pr[rk++]=i;
		}
	if(x>1) pr[rk++]=x;
}
ll qp(ll a,ll b){
	ll res=1;
	while(b){
		if(b&1) res=(lll)res*a%n;
		a=(lll)a*a%n;b>>=1;
	}
	return res;
}
bool check(ll x){
	for(int i=0;i<rk;++i) if(qp(x,phi/pr[i])==1) return 0;
	return 1;
}
int main(){
	scanf("%lld",&n);
	if(n==2){puts("1");return 0;}
	if(n==4){puts("3");return 0;}
	if(n&1) getfac(n);else getfac(n>>1);
	if(rk!=1||pr[0]==2){puts("-1");return 0;}
	ll cur=n;int c=0;
	while(cur%pr[0]==0) cur/=pr[0],++c;
	phi=pr[0]-1;while(--c) phi*=pr[0];
	getfac(phi);
	ll g=2;
	while(!check(g)) ++g;
	printf("%lld\n",g);
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 1
Accepted

Test #1:

score: 1
Accepted
time: 0ms
memory: 1788kb

input:

433

output:

5

result:

ok good solution

Test #2:

score: 0
Accepted
time: 0ms
memory: 1808kb

input:

197

output:

2

result:

ok good solution

Test #3:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

733

output:

6

result:

ok good solution

Test #4:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

859

output:

2

result:

ok good solution

Test #5:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

449

output:

3

result:

ok good solution

Test #6:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

263

output:

5

result:

ok good solution

Test #7:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

683

output:

5

result:

ok good solution

Test #8:

score: 0
Accepted
time: 0ms
memory: 1776kb

input:

17

output:

3

result:

ok good solution

Test #9:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

359

output:

7

result:

ok good solution

Test #10:

score: 0
Accepted
time: 0ms
memory: 1768kb

input:

89

output:

3

result:

ok good solution

Test #11:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

647

output:

5

result:

ok good solution

Test #12:

score: 0
Accepted
time: 0ms
memory: 1792kb

input:

487

output:

3

result:

ok good solution

Test #13:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

677

output:

2

result:

ok good solution

Test #14:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

829

output:

2

result:

ok good solution

Test #15:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

227

output:

2

result:

ok good solution

Test #16:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

151

output:

6

result:

ok good solution

Test #17:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

607

output:

3

result:

ok good solution

Test #18:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

661

output:

2

result:

ok good solution

Test #19:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

151

output:

6

result:

ok good solution

Test #20:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

101

output:

2

result:

ok good solution

Test #21:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

5

output:

2

result:

ok good solution

Test #22:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

877

output:

2

result:

ok good solution

Test #23:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

139

output:

2

result:

ok good solution

Test #24:

score: 0
Accepted
time: 0ms
memory: 1780kb

input:

389

output:

2

result:

ok good solution

Test #25:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

421

output:

2

result:

ok good solution

Test #26:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

709

output:

2

result:

ok good solution

Test #27:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

331

output:

3

result:

ok good solution

Test #28:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

269

output:

2

result:

ok good solution

Test #29:

score: 0
Accepted
time: 0ms
memory: 1792kb

input:

797

output:

2

result:

ok good solution

Test #30:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

997

output:

7

result:

ok good solution

Subtask #2:

score: 1
Accepted

Dependency #1:

100%
Accepted

Test #31:

score: 1
Accepted
time: 0ms
memory: 1788kb

input:

841

output:

2

result:

ok good solution

Test #32:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

289

output:

3

result:

ok good solution

Test #33:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

729

output:

2

result:

ok good solution

Test #34:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

169

output:

2

result:

ok good solution

Test #35:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

961

output:

3

result:

ok good solution

Test #36:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

31

output:

3

result:

ok good solution

Test #37:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

243

output:

2

result:

ok good solution

Test #38:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

625

output:

2

result:

ok good solution

Test #39:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

121

output:

2

result:

ok good solution

Test #40:

score: 0
Accepted
time: 0ms
memory: 1780kb

input:

125

output:

2

result:

ok good solution

Test #41:

score: 0
Accepted
time: 0ms
memory: 1564kb

input:

512

output:

-1

result:

ok no solution

Test #42:

score: 0
Accepted
time: 0ms
memory: 1780kb

input:

361

output:

2

result:

ok good solution

Test #43:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

529

output:

5

result:

ok good solution

Test #44:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

29

output:

2

result:

ok good solution

Test #45:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

23

output:

5

result:

ok good solution

Test #46:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

11

output:

2

result:

ok good solution

Test #47:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

25

output:

2

result:

ok good solution

Test #48:

score: 0
Accepted
time: 0ms
memory: 1664kb

input:

13

output:

2

result:

ok good solution

Test #49:

score: 0
Accepted
time: 0ms
memory: 1676kb

input:

19

output:

2

result:

ok good solution

Test #50:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

5

output:

2

result:

ok good solution

Test #51:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

17

output:

3

result:

ok good solution

Test #52:

score: 0
Accepted
time: 0ms
memory: 1700kb

input:

343

output:

3

result:

ok good solution

Test #53:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

81

output:

2

result:

ok good solution

Test #54:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

27

output:

2

result:

ok good solution

Test #55:

score: 0
Accepted
time: 0ms
memory: 1540kb

input:

256

output:

-1

result:

ok no solution

Test #56:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

49

output:

3

result:

ok good solution

Test #57:

score: 0
Accepted
time: 0ms
memory: 1748kb

input:

9

output:

2

result:

ok good solution

Test #58:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

3

output:

2

result:

ok good solution

Test #59:

score: 0
Accepted
time: 0ms
memory: 1808kb

input:

7

output:

3

result:

ok good solution

Test #60:

score: 0
Accepted
time: 0ms
memory: 1484kb

input:

128

output:

-1

result:

ok no solution

Subtask #3:

score: 0
Wrong Answer

Dependency #2:

100%
Accepted

Test #61:

score: 0
Wrong Answer
time: 0ms
memory: 1764kb

input:

578

output:

2

result:

wrong answer wrong solution

Subtask #4:

score: 1
Accepted

Dependency #1:

100%
Accepted

Test #91:

score: 1
Accepted
time: 0ms
memory: 1672kb

input:

182233

output:

5

result:

ok good solution

Test #92:

score: 0
Accepted
time: 0ms
memory: 1676kb

input:

28771

output:

2

result:

ok good solution

Test #93:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

579239

output:

11

result:

ok good solution

Test #94:

score: 0
Accepted
time: 0ms
memory: 1740kb

input:

724747

output:

7

result:

ok good solution

Test #95:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

143513

output:

3

result:

ok good solution

Test #96:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

695509

output:

2

result:

ok good solution

Test #97:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

999217

output:

5

result:

ok good solution

Test #98:

score: 0
Accepted
time: 0ms
memory: 1780kb

input:

888161

output:

3

result:

ok good solution

Test #99:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

234287

output:

5

result:

ok good solution

Test #100:

score: 0
Accepted
time: 0ms
memory: 1688kb

input:

746483

output:

2

result:

ok good solution

Test #101:

score: 0
Accepted
time: 0ms
memory: 1792kb

input:

985003

output:

3

result:

ok good solution

Test #102:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

786959

output:

17

result:

ok good solution

Test #103:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

1097

output:

3

result:

ok good solution

Test #104:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

105527

output:

5

result:

ok good solution

Test #105:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

812519

output:

7

result:

ok good solution

Test #106:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

161599

output:

6

result:

ok good solution

Test #107:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

645131

output:

2

result:

ok good solution

Test #108:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

63397

output:

2

result:

ok good solution

Test #109:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

244429

output:

6

result:

ok good solution

Test #110:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

911453

output:

2

result:

ok good solution

Test #111:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

340477

output:

2

result:

ok good solution

Test #112:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

28351

output:

6

result:

ok good solution

Test #113:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

414277

output:

2

result:

ok good solution

Test #114:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

411923

output:

2

result:

ok good solution

Test #115:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

986281

output:

19

result:

ok good solution

Test #116:

score: 0
Accepted
time: 0ms
memory: 1792kb

input:

882047

output:

5

result:

ok good solution

Test #117:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

323009

output:

3

result:

ok good solution

Test #118:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

577153

output:

5

result:

ok good solution

Test #119:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

42281

output:

11

result:

ok good solution

Test #120:

score: 0
Accepted
time: 0ms
memory: 1768kb

input:

601823

output:

5

result:

ok good solution

Subtask #5:

score: 1
Accepted

Dependency #2:

100%
Accepted

Dependency #4:

100%
Accepted

Test #121:

score: 1
Accepted
time: 0ms
memory: 1748kb

input:

531441

output:

2

result:

ok good solution

Test #122:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

703921

output:

11

result:

ok good solution

Test #123:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

253009

output:

5

result:

ok good solution

Test #124:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

229441

output:

13

result:

ok good solution

Test #125:

score: 0
Accepted
time: 0ms
memory: 1792kb

input:

22801

output:

6

result:

ok good solution

Test #126:

score: 0
Accepted
time: 0ms
memory: 1792kb

input:

160801

output:

3

result:

ok good solution

Test #127:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

477481

output:

3

result:

ok good solution

Test #128:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

177147

output:

2

result:

ok good solution

Test #129:

score: 0
Accepted
time: 0ms
memory: 1796kb

input:

120409

output:

2

result:

ok good solution

Test #130:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

185761

output:

7

result:

ok good solution

Test #131:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

357911

output:

7

result:

ok good solution

Test #132:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

358801

output:

7

result:

ok good solution

Test #133:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

143641

output:

2

result:

ok good solution

Test #134:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

727609

output:

2

result:

ok good solution

Test #135:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

192721

output:

15

result:

ok good solution

Test #136:

score: 0
Accepted
time: 0ms
memory: 1632kb

input:

201601

output:

3

result:

ok good solution

Test #137:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

310249

output:

2

result:

ok good solution

Test #138:

score: 0
Accepted
time: 0ms
memory: 1768kb

input:

124609

output:

3

result:

ok good solution

Test #139:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

52441

output:

6

result:

ok good solution

Test #140:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

299209

output:

2

result:

ok good solution

Test #141:

score: 0
Accepted
time: 0ms
memory: 1480kb

input:

524288

output:

-1

result:

ok no solution

Test #142:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

564001

output:

3

result:

ok good solution

Test #143:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

704969

output:

3

result:

ok good solution

Test #144:

score: 0
Accepted
time: 0ms
memory: 1688kb

input:

58081

output:

7

result:

ok good solution

Test #145:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

375769

output:

2

result:

ok good solution

Test #146:

score: 0
Accepted
time: 0ms
memory: 1688kb

input:

853

output:

2

result:

ok good solution

Test #147:

score: 0
Accepted
time: 0ms
memory: 1676kb

input:

37249

output:

5

result:

ok good solution

Test #148:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

389017

output:

5

result:

ok good solution

Test #149:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

516961

output:

11

result:

ok good solution

Test #150:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

677329

output:

3

result:

ok good solution

Subtask #6:

score: 0
Skipped

Dependency #3:

0%

Subtask #7:

score: 1
Accepted

Dependency #4:

100%
Accepted

Test #181:

score: 1
Accepted
time: 0ms
memory: 1748kb

input:

842797909

output:

2

result:

ok good solution

Test #182:

score: 0
Accepted
time: 0ms
memory: 1748kb

input:

662460749

output:

2

result:

ok good solution

Test #183:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

583578713

output:

3

result:

ok good solution

Test #184:

score: 0
Accepted
time: 0ms
memory: 1796kb

input:

714745777

output:

19

result:

ok good solution

Test #185:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

626528689

output:

7

result:

ok good solution

Test #186:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

848747719

output:

3

result:

ok good solution

Test #187:

score: 0
Accepted
time: 0ms
memory: 1692kb

input:

780868019

output:

2

result:

ok good solution

Test #188:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

295695817

output:

5

result:

ok good solution

Test #189:

score: 0
Accepted
time: 0ms
memory: 1732kb

input:

950964661

output:

6

result:

ok good solution

Test #190:

score: 0
Accepted
time: 0ms
memory: 1700kb

input:

219526067

output:

2

result:

ok good solution

Test #191:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

763440683

output:

2

result:

ok good solution

Test #192:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

744457559

output:

43

result:

ok good solution

Test #193:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

117979097

output:

3

result:

ok good solution

Test #194:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

910461493

output:

5

result:

ok good solution

Test #195:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

796412147

output:

2

result:

ok good solution

Test #196:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

221019493

output:

2

result:

ok good solution

Test #197:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

237830497

output:

10

result:

ok good solution

Test #198:

score: 0
Accepted
time: 0ms
memory: 1776kb

input:

209079863

output:

5

result:

ok good solution

Test #199:

score: 0
Accepted
time: 0ms
memory: 1784kb

input:

808345841

output:

3

result:

ok good solution

Test #200:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

100217503

output:

3

result:

ok good solution

Test #201:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

99546341

output:

2

result:

ok good solution

Test #202:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

811108069

output:

6

result:

ok good solution

Test #203:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

121875503

output:

5

result:

ok good solution

Test #204:

score: 0
Accepted
time: 0ms
memory: 1748kb

input:

932569537

output:

10

result:

ok good solution

Test #205:

score: 0
Accepted
time: 0ms
memory: 1768kb

input:

598983901

output:

6

result:

ok good solution

Test #206:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

54645551

output:

7

result:

ok good solution

Test #207:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

22252519

output:

3

result:

ok good solution

Test #208:

score: 0
Accepted
time: 0ms
memory: 1728kb

input:

666436031

output:

14

result:

ok good solution

Test #209:

score: 0
Accepted
time: 0ms
memory: 1788kb

input:

900871603

output:

2

result:

ok good solution

Test #210:

score: 0
Accepted
time: 0ms
memory: 1732kb

input:

561111223

output:

43

result:

ok good solution

Subtask #8:

score: 1
Accepted

Dependency #5:

100%
Accepted

Dependency #7:

100%
Accepted

Test #211:

score: 1
Accepted
time: 0ms
memory: 1776kb

input:

65983129

output:

2

result:

ok good solution

Test #212:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

29626249

output:

2

result:

ok good solution

Test #213:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

25210441

output:

3

result:

ok good solution

Test #214:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

632673409

output:

10

result:

ok good solution

Test #215:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

150528361

output:

2

result:

ok good solution

Test #216:

score: 0
Accepted
time: 0ms
memory: 1700kb

input:

68417929

output:

21

result:

ok good solution

Test #217:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

106357969

output:

3

result:

ok good solution

Test #218:

score: 0
Accepted
time: 0ms
memory: 1736kb

input:

4068289

output:

5

result:

ok good solution

Test #219:

score: 0
Accepted
time: 0ms
memory: 1764kb

input:

43309561

output:

14

result:

ok good solution

Test #220:

score: 0
Accepted
time: 0ms
memory: 1748kb

input:

668170801

output:

7

result:

ok good solution

Test #221:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

339038569

output:

2

result:

ok good solution

Test #222:

score: 0
Accepted
time: 0ms
memory: 1756kb

input:

522625321

output:

2

result:

ok good solution

Test #223:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

127938721

output:

3

result:

ok good solution

Test #224:

score: 0
Accepted
time: 0ms
memory: 1696kb

input:

41306329

output:

3

result:

ok good solution

Test #225:

score: 0
Accepted
time: 0ms
memory: 1748kb

input:

259564321

output:

7

result:

ok good solution

Test #226:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

13997521

output:

7

result:

ok good solution

Test #227:

score: 0
Accepted
time: 0ms
memory: 1780kb

input:

400920529

output:

3

result:

ok good solution

Test #228:

score: 0
Accepted
time: 0ms
memory: 1676kb

input:

119880601

output:

2

result:

ok good solution

Test #229:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

383493889

output:

5

result:

ok good solution

Test #230:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

122257249

output:

3

result:

ok good solution

Test #231:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

633579241

output:

3

result:

ok good solution

Test #232:

score: 0
Accepted
time: 0ms
memory: 1760kb

input:

53743561

output:

2

result:

ok good solution

Test #233:

score: 0
Accepted
time: 0ms
memory: 1752kb

input:

481231969

output:

7

result:

ok good solution

Test #234:

score: 0
Accepted
time: 0ms
memory: 1664kb

input:

462379009

output:

5

result:

ok good solution

Test #235:

score: 0
Accepted
time: 0ms
memory: 1676kb

input:

1957201

output:

13

result:

ok good solution

Test #236:

score: 0
Accepted
time: 0ms
memory: 1676kb

input:

196308121

output:

2

result:

ok good solution

Test #237:

score: 0
Accepted
time: 0ms
memory: 1664kb

input:

300017041

output:

3

result:

ok good solution

Test #238:

score: 0
Accepted
time: 0ms
memory: 1668kb

input:

414244609

output:

5

result:

ok good solution

Test #239:

score: 0
Accepted
time: 0ms
memory: 1660kb

input:

533411731

output:

3

result:

ok good solution

Test #240:

score: 0
Accepted
time: 0ms
memory: 1672kb

input:

529138009

output:

2

result:

ok good solution

Subtask #9:

score: 0
Skipped

Dependency #6:

0%

Subtask #10:

score: 0
Skipped

Dependency #9:

0%