Saturday, January 3, 2015

Solution of 1409. Two Gangsters ( Timus Online Judge )

#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
#define MAX 10000005
#define pf printf
#define sf scanf
typedef long long ll;

int main()
{
    int L, H, sum=0;
    sf("%d%d", &H, &L);
    sum = (L+H-1);
    pf("%d %d\n", (sum-H), (sum-L) );
}

No comments:

Post a Comment

Compare equality of two string in C

#include <stdio.h> #include<string.h> int main() {     char* country = "Bangladesh";     char* country2;     ...