UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#213088#2356. Countone_zero_four_zero301ms1196kbC++11809b2024-11-09 19:34:382024-11-09 23:08:28

answer

#include<bits/stdc++.h>
#pragma GCC optimize(2)
#define mod 1000000007LL
using namespace std;

int N, K, L1, L2;
long long ans1 = 0, ans2 = 0, ans3 = 0, ans4 = 0;

long long solve1(){
	long long res = 0;
	if (K == 0) return 1LL * N;
	for (int i = 1; i <= K; i ++){
		if ((i % 1 == 0) && (K % i == 0)){
			res ++;
		}
	}
	return res;
}

long long solve2(){
	return 0;
}

long long solve3(){
	return 0;
}

long long solve4(){
	return 0;
}

int main(){
#ifndef ONLINE_JUDGE
	freopen("../data.in", "r", stdin);
	freopen("../data.out", "w", stdout);
#endif

	scanf("%d %d %d %d", &N, &K, &L1, &L2);
	ans1 = solve1() % mod;
	ans2 = solve2() % mod;
	ans3 = solve3() % mod;
	ans4 = solve4() % mod;
	printf("%lld %lld %lld %lld\n", ans1, ans2, ans3, ans4);
	
	return 0;
}

详细

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

Test #1:

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

input:

5 0 7 3

output:

5 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #2:

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

input:

8 0 9 4

output:

8 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #3:

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

input:

10 1 10 5

output:

1 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #4:

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

input:

500 2 996 6

output:

2 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #5:

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

input:

800 233 966 7

output:

2 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #6:

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

input:

1000 666 999 10

output:

12 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #7:

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

input:

50000 2048 98673 100

output:

12 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #8:

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

input:

80000 65535 25192 50

output:

16 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #9:

score: 3
Acceptable Answer
time: 1ms
memory: 1188kb

input:

100000 23333 99696 12

output:

2 0 0 0

result:

points 0.30 correct wrong wrong wrong

Test #10:

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

input:

100000 89941 99669 6

output:

4 0 0 0

result:

points 0.30 correct wrong wrong wrong