NO,no, no, no, no, no, no, no, no, no, no degen adam bay emes pe?
Train.in
Train.out
A train leaves the first station with N passengers and visits K stations before
it arrives at the last station. In each station some passengers got off the train
and some passengers got on the train. Everybody in the train got off at the last
station. Make a program that calculates how many passengers got off the train
at the last station.
The first line of the input has two integers N and K. Each of the following K lines
contains two integers, the first one denotes the number of passengers who got
off the train ...
#include<iostream>
using namespace std;
int main()
{
float n,m,kb,mb=0,s;
s=60*60;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>m;
mb += m;
}
kb=mb*1024;
if((kb/120)<=s)
cout<<"YES";
else
cout<<"NO";
system("pause");
return 0;
}