- 唱跳rap打篮球(测试题)(测试成功)
输入数据编写源码
- 2023-2-4 21:43:13 @
#include<iostream>
#include<time.h>
using namespace std;
int a,b,c,x;
const int N=1e8+1;
int main(){
srand(time(0));
a=rand()%101;
b=rand()%101;
c=rand()%101;
cout<<a<<endl;
for(int i=1;i<=a;i++){
x=rand()%N;
cout<<x<<' ';
}
cout<<endl;
cout<<b<<endl;
for(int i=1;i<=b;i++){
x=rand()%N;
cout<<x<<' ';
}
cout<<endl;
cout<<c<<endl;
for(int i=1;i<=c;i++){
x=rand()%N;
cout<<x<<' ';
}
cout<<endl;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 324
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- # Submissions
- 30
- Accepted
- 3
- Uploaded By