点击这里更换您喜欢的皮肤wtboj 首页
请点击这里登入noios   首页 入门 c++讲义 入门教程视频 其他页面 入门视频 站务 公告 | 题库 记录 竞测 测试 闯关 作业 排名 团队 讨论 | 换肤 | 登入 注册  
News >>   新增功能:各团队管理员可以发布本团队作业了 ()

讨论 Discussion
 
ffff
#include <bits/stdc++.h>
using namespace std;
int main() {
freopen("p1677.in","r",stdin);
freopen("p1677.out","w",stdout)
int n;
cin >> n;
cout << n << "=";
int t = n;
for (int i = 2; i * i <= t; i++) {
while (t % i == 0) {
cout << i;
t /= i;
if (t != 1) {
cout << "*";
}
}
}
if (t > 1) {
cout << t;
}
fclose(stdin);  
fclose(stdout);  
return 0;
}
( 2026/3/3 17:17:22 )

f
#include <bits/stdc++.h>
using namespace std;
int main() {
freopen("p1717.in","r",stdin);
freopen("p1717.out","w",stdout)
int n;
cin >> n;
int a[100];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
int x;
cin >> x;
for (int i = x - 1; i < n - 1; i++) {
a[i] = a[i + 1];
}
for (int i = 0; i < n - 1; i++) {
cout << a[i] << " ";
}
return 0;
fclose(stdin);  
fclose(stdout);
}
( )
f
#include <bits/stdc++.h>
using namespace std;
int main() {
freopen("p1717.in","r",stdin);
freopen("p1717.out","w",stdout)
int n;
cin >> n;
int a[100];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
int x;
cin >> x;
for (int i = x - 1; i < n - 1; i++) {
a[i] = a[i + 1];
}
for (int i = 0; i < n - 1; i++) {
cout << a[i] << " ";
}
return 0;
fclose(stdin);  
fclose(stdout);
}
( )
发布讨论主题 回复讨论主题
 Copyright wtboj © 2005-2006. www.wutuobang.date Powered by wtboj 关于 联系 帮助
 wtboj Information ---- Total Users : 1368 | Online Users / Processes : 0 / 12 | Processed Time : 31 ms | Server Time : 2026/3/15 17:01:49