#include<bits/stdc++.h>
using namespace std;
struct Long {
int *s;
Long() {
s=new int[5];
memset(s,0,20);
}
~Long() {
delete[] s;
}
void operator=(const Long &A) {
delete[] s;
s=new int[5];
memcpy(s,A.s,20);
}
void read() {
char ss[10005]={0};
scanf("%s",ss);
delete[] s;
s=new int[5];
memset(s,0,20);
for (int i=0;i<5;++i)
s[i]=ss[4-i]-48;
}
void put() {
for (int i=4;i>=0;--i)
printf("%d ",s[i]);
puts("");
}
void Change() {
Long C=*this;
C.put();
*this=C;
put();
}
};
int main() {
while (1) {
Long a,b;
a.read();
a.put();
a.Change();
a.put();
}
}
UNKNOWN ERROR 诡异错误
最新推荐文章于 2024-08-02 16:20:17 发布