|
|
back to boardYordam! Pomogite! Help! Test #01 куда тут ошибка помогите пожалуйста #include <iostream> using namespace std; int main () { short int A[6]; signed int s=0,s2=0; for (int i=0;i<6;i++) cin>>A[i]; for (int i=0;i<3;i++) s=s+A[i]; for (int i=5;i>=3;i--) s2=s2+A[i];
if ((s-s2==-1) || (s-s2==1 && A[5]!=9)) cout<<"Yes";
else cout<<"No"; //system ("pause");
return 0;
} Edited by author 22.06.2012 19:44 Re: Yordam! Pomogite! Help! Bubinan Re: Yordam! Pomogite! Help! masalan int s; bo'lsa, cin>>S qilib o'qitish kerak . OK Re: Yordam! Pomogite! Help! masalan int s; bo'lsa, cin>>S qilib o'qitish kerak . OK |
|
|