#include<iostream> #include<cstdio> using namespace std; int main(){ int k1,k2,k3,a[3]; while(scanf("%d%d%d",&k1,&k2,&k3)==3){ a[0] = k1-3*k2+3*k3; a[1] = 3*k1-8*k2+6*k3; a[2] = 6*k1-15*k2+10*k3; printf("%d %d %d\n",a[0],a[1],a[2]); } return 0; }
2023-11-29 15:30:46
#include<iostream> #include<cstdio> using namespace std; int main(){ int k1,k2,k3,a[3]; while(scanf("%d%d%d",&k1,&k2,&k3)==3){ a[0] = k1-3*k2+3*k3; a[1] = 3*k1-8*k2+6*k3; a[2] = 6*k1-15*k2+10*k3; printf("%d %d %d\n",a[0],a[1],a[2]); } return 0; }