UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#213190#2356. Countyanruo_BGSSR_ypa60ms1200kbC++11225b2024-11-09 22:35:422024-11-09 23:29:44

answer

#include<bits/stdc++.h>
using namespace std;
int n,k,l1,l2,an1;
int main(){
	cin>>n>>k>>l1>>l2;
	for(int i=1;i<=sqrt(k);i++)if(n%i==0)an1+=(i*i==k?1:2);
	cout<<an1<<' '<<n+1<<' '<<n<<' '<<n*(n+1)/2+n-1;
	return 0;
}

Details

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

Test #1:

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

input:

5 0 7 3

output:

0 6 5 19

result:

points 0.0 wrong wrong wrong wrong

Test #2:

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

input:

8 0 9 4

output:

0 9 8 43

result:

points 0.0 wrong wrong wrong wrong

Test #3:

score: 3
Acceptable Answer
time: 0ms
memory: 1200kb

input:

10 1 10 5

output:

1 11 10 64

result:

points 0.30 correct wrong wrong wrong

Test #4:

score: 3
Acceptable Answer
time: 0ms
memory: 1200kb

input:

500 2 996 6

output:

2 501 500 125749

result:

points 0.30 correct wrong wrong wrong

Test #5:

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

input:

800 233 966 7

output:

12 801 800 321199

result:

points 0.0 wrong wrong wrong wrong

Test #6:

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

input:

1000 666 999 10

output:

16 1001 1000 501499

result:

points 0.0 wrong wrong wrong wrong

Test #7:

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

input:

50000 2048 98673 100

output:

20 50001 50000 -897408649

result:

points 0.0 wrong wrong wrong wrong

Test #8:

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

input:

80000 65535 25192 50

output:

40 80001 80000 1052636351

result:

points 0.0 wrong wrong wrong wrong

Test #9:

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

input:

100000 23333 99696 12

output:

30 100001 100000 705182703

result:

points 0.0 wrong wrong wrong wrong

Test #10:

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

input:

100000 89941 99669 6

output:

36 100001 100000 705182703

result:

points 0.0 wrong wrong wrong wrong