ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1493. One Step from Happiness

Yordam! Pomogite! Help!
Posted by Hamdam_TUIT 19 Jun 2012 01:09
 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!
Posted by traktorist 15 Dec 2013 02:23
Bubinan
Re: Yordam! Pomogite! Help!
Posted by Jamshid Sattarov (TUIT Urgench) 14 Oct 2014 12:41
masalan int s; bo'lsa,
cin>>S qilib o'qitish kerak . OK
Re: Yordam! Pomogite! Help!
Posted by Jamshid Sattarov (TUIT Urgench) 14 Oct 2014 12:41
masalan int s; bo'lsa,
cin>>S qilib o'qitish kerak . OK