动态数组
已结束
XCPC
开始于: 2026-1-23 22:45
20
小时
主持人:
5
动态数组讲义
#include <bits/stdc++.h> // oop 面向对象 类 和 对象 JAVA
using namespace std;
// cpp C++
int main(){
vector<int> a;
for(int i =1;i<=3;i++){
a.push_back(i);
}
do{
cout << a[0]<<a[1]<<a[2]<<endl;
}while(next_permutation(a.begin(), a.end()));
return 0;
}
- 状态
- 已结束
- 规则
- XCPC
- 题目
- 3
- 开始于
- 2026-1-23 22:45
- 结束于
- 2026-1-24 18:45
- 持续时间
- 20 小时
- 主持人
- 参赛人数
- 5
粤公网安备44195502000169号