added more task

This commit is contained in:
ada-dmitry
2023-11-15 10:34:29 +03:00
parent 2a3484ba88
commit 10b256c812
14 changed files with 126 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <stdio.h>
#define x 106
int main()
{
int rub, kop, rest, n;
scanf("%d%d", &rub, &kop);
n = (rub * 100 + kop) / x;
rest = (rub * 100 + kop) - n * x;
printf("%d %d\n", n, rest);
return 0;
}