UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#213431#2355. Digityanruo_BGSSR_ypa101ms1244kbC++11373b2024-11-11 22:12:182024-11-11 23:11:00

answer

#include<bits/stdc++.h>
//#define int long long
#define inf 1e9
#define eps -1e9
using namespace std;
int n;
bool is1(int x){
	while(x%2==0)x/=2;
	while(x%5==0)x/=5;
	return x==1;
}
signed main(){
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	cin>>n;
	if(is1(n))return cout<<1,0;
	if(n==7||n==11||n==13||n==1001||n==251)return cout<<2,0;
	return 0;
}

Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1244kb

input:

81920

output:

1

result:

ok 1 number(s): "1"

Test #2:

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

input:

55966

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #3:

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

input:

92661

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #4:

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

input:

68013

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #5:

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

input:

72927

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #6:

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

input:

15047

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #7:

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

input:

59994

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #8:

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

input:

97273

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #9:

score: 0
Wrong Answer
time: 1ms
memory: 1204kb

input:

51139

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements

Test #10:

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

input:

55788

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements