Язык СИ:
1.
#include
int main(){
long long int n1,n2,n3,s;
scanf("%lld",&n1);
scanf("%lld",&n2);
scanf("%lld",&n3);
s=(n1+n2+n3)*15;
printf("%s\n",s%7==0 && s%9==0?"yes":"no");
//getchar();
return 0;
}
2.
#include
int main(){
long long int n1,n2,n3,n4,s1_4;
scanf("%lld",&n1);
scanf("%lld",&n2);
scanf("%lld",&n3);
scanf("%lld",&n4);
s1_4=n1+n2+n3+n4;
if(s1_4<130 && n2>=0)printf("%Lg",s1_4/4.0L);
else if(s1_4<130)printf("%lld\n",n1*n4);</p>
else if(n2>=0)printf("%lld %lld %lld %lld\n",n1,n2,n3,n4);
else printf("%lld %lld\n",s1_4,n2+n3);
//getchar();
return 0;
}