Initial commit

This commit is contained in:
xixu-me committed 2024-03-17 22:30:49 +08:00
commit bdf71aef37
120 files changed
+8284

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int x, mask = 1;
scanf("%d", &x);
int t = x;
while (t > 9) {
t /= 10;
mask *= 10;
}
do {
int d = x / mask;
printf("%d", d);
if (mask > 9)
;
{
printf(" ");
}
x %= mask;
mask /= 10;
} while (mask > 0);
return 0;
}