| |
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);
}
( ) |
|