#include <stdio.h>
#include <string.h>
//用数组模拟环的问题!!!
/*
10
2 5
5
2 3
6,1,7,3,10,9,2,5,8,4
4,2,1,3,5
*/
int main() {
int n;
while(scanf("%d", &n) != EOF) {
int s, m;
scanf("%d%d", &s, &m);
//int k = m - s + 1;
int arr[10010];
memset(arr, 0, sizeof(arr));
bool firstcase = true;
int i = s-1, step = 0, count = 0;
while(count < n) {
i++; &...
登录后发布评论
暂无评论,来抢沙发