肝帝题解
2023-10-11 19:18:37
发布于:浙江
#include <iostream>
using namespace std;
int main(){
int a;
cin>>a;
int b[1000]={2,1,4,3,6,5,8,7,10,9,12,11,14,13,16,15,18,17,20,19,22,21,24,23,26,25,28,27,30,29,32,31,34,33,36,35,38,37,40,39,42,41,44,43,46,45,48,47,50,49,52,51,54,53,56,55,58,57,60,59,62,61,64,63,66,65,68,67,70,69,72,71,74,73,76,75,78,77,80,79,82,81,84,83,86,85,88,87,90,89,92,91,94,93,96,95,98,97,100,99};
for(int i=0;i<a;i++)cout<<b[i]<<" ";
return 0;
}
全部评论 5
#include<iostream>
using namespace std;
int main(){
int a;
cin >> a;
int arr[100] = {2,1,4,3,6,5,8,7,10,9,12,11,14,13,16,15,18,17,20,19,22,21,24,23,26,25,28,27,30,29,32,31,34,33,36,35,38,32024-05-21 来自 广东
0arr只需要100
2024-05-21 来自 广东
0
这不科学
2024-03-03 来自 广东
0这就是漏洞?
2024-03-03 来自 广东
0what?
2024-03-03 来自 广东
0难道他真的是天才?
2023-12-15 来自 广东
0
有帮助,赞一个