Initial commit
This commit is contained in:
commit
bdf71aef37
120 files changed
+8284
No files matched your search
@@ -0,0 +1,42 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(void) {
|
||||
int x;
|
||||
int o, f, t, tt, ft, h;
|
||||
int exit = 0;
|
||||
|
||||
printf("һǸ");
|
||||
scanf("%d", &x);
|
||||
|
||||
for (o = 0; o <= x; o++) {
|
||||
for (f = 0; f <= x / 5; f++) {
|
||||
for (t = 0; t <= x / 10; t++) {
|
||||
for (tt = 0; tt <= x / 20; tt++) {
|
||||
for (ft = 0; ft <= x / 50; ft++) {
|
||||
for (h = 0; h <= x / 100; h++) {
|
||||
if (o * 1 + f * 5 + t * 10 + tt * 20 + ft * 50 + h * 100 == x) {
|
||||
printf("Խ %d һԪ%d Ԫ%d ʮԪ%d ŶʮԪ%d ʮԪ %d һԪõ %d Ԫ\n", o, f, t, tt, ft, h, x);
|
||||
exit = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (exit)
|
||||
break;
|
||||
}
|
||||
if (exit)
|
||||
break;
|
||||
}
|
||||
if (exit)
|
||||
break;
|
||||
}
|
||||
if (exit)
|
||||
break;
|
||||
}
|
||||
if (exit)
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user