View Code of Problem 67

#include <iostream>
#include <sstream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
#include <stack>
#include <map>
#include <set>
#include <queue>
using namespace std;
int change(int a,int b,int c)
{
    return a*3600+b*60+c;
}

int main()
    {
        #ifdef  ONLINE_JUDGE
        #else
        freopen("1.txt","r",stdin);
        #endif
        char a[8];
        char b[8];
        while(gets(a))
        {
            gets(b);
            int k1=(a[6]-a[2])*1.0/((a[4]-a[0])/1.0);
            int k2=(b[6]-b[2])*1.0/((b[4]-b[0])/1.0);
            if(k1==k2) cout<<"No";
            else cout<<"Yes";
            cout<<endl;
        }

        return 0;
    }

Double click to view unformatted code.


Back to problem 67