ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#204633 | #3611. 走马 | sesame | 100 | 43ms | 1256kb | C++ | 316b | 2024-06-08 09:15:42 | 2024-06-08 13:05:01 |
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n,k;
void solve(){
cin>>n>>k;
cout<<"0";
int i=k;
while(i)
{
cout<<" "<<i;
i=(i+k)%n;
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);
int t=1;
//cin>>t;
while (t--){
solve();
}
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 10
Accepted
time: 8ms
memory: 1252kb
input:
97301 63963
output:
0 63963 30625 94588 61250 27912 91875 58537 25199 89162 55824 22486 86449 53111 19773 83736 50398 17...
result:
ok single line: '0 63963 30625 94588 61250 2791...26 69389 36051 2713 66676 33338'
Test #2:
score: 10
Accepted
time: 7ms
memory: 1252kb
input:
97881 29594
output:
0 29594 59188 88782 20495 50089 79683 11396 40990 70584 2297 31891 61485 91079 22792 52386 81980 136...
result:
ok single line: '0 29594 59188 88782 20495 5008...98 47792 77386 9099 38693 68287'
Test #3:
score: 10
Accepted
time: 3ms
memory: 1252kb
input:
66086 52709
output:
0 52709 39332 25955 12578 65287 51910 38533 25156 11779 64488 51111 37734 24357 10980 63689 50312 36...
result:
ok single line: '0 52709 39332 25955 12578 6528...176 799 53508 40131 26754 13377'
Test #4:
score: 10
Accepted
time: 5ms
memory: 1256kb
input:
71886 59189
output:
0 59189 46492 33795 21098 8401 67590 54893 42196 29499 16802 4105 63294 50597 37900 25203 12506 7169...
result:
ok single line: '0 59189 46492 33795 21098 8401...6 63485 50788 38091 25394 12697'
Test #5:
score: 10
Accepted
time: 0ms
memory: 1256kb
input:
68030 41530
output:
0 41530 15030 56560 30060 3560 45090 18590 60120 33620 7120 48650 22150 63680 37180 10680 52210 2571...
result:
ok single line: '0 41530 15030 56560 30060 3560...0 64470 37970 11470 53000 26500'
Test #6:
score: 10
Accepted
time: 3ms
memory: 1252kb
input:
75966 50806
output:
0 50806 25646 486 51292 26132 972 51778 26618 1458 52264 27104 1944 52750 27590 2430 53236 28076 291...
result:
ok single line: '0 50806 25646 486 51292 26132 ...4 49834 24674 75480 50320 25160'
Test #7:
score: 10
Accepted
time: 4ms
memory: 1256kb
input:
71351 66315
output:
0 66315 61279 56243 51207 46171 41135 36099 31063 26027 20991 15955 10919 5883 847 67162 62126 57090...
result:
ok single line: '0 66315 61279 56243 51207 4617...16 25180 20144 15108 10072 5036'
Test #8:
score: 10
Accepted
time: 5ms
memory: 1256kb
input:
78053 18910
output:
0 18910 37820 56730 75640 16497 35407 54317 73227 14084 32994 51904 70814 11671 30581 49491 68401 92...
result:
ok single line: '0 18910 37820 56730 75640 1649...46 61556 2413 21323 40233 59143'
Test #9:
score: 10
Accepted
time: 3ms
memory: 1252kb
input:
65965 45398
output:
0 45398 24831 4264 49662 29095 8528 53926 33359 12792 58190 37623 17056 62454 41887 21320 753 46151 ...
result:
ok single line: '0 45398 24831 4264 49662 29095...7 36870 16303 61701 41134 20567'
Test #10:
score: 10
Accepted
time: 5ms
memory: 1256kb
input:
57072 3959
output:
0 3959 7918 11877 15836 19795 23754 27713 31672 35631 39590 43549 47508 51467 55426 2313 6272 10231 ...
result:
ok single line: '0 3959 7918 11877 15836 19795 ...8 37277 41236 45195 49154 53113'