Thursday, 28 January 2016

Solution of URI 1046 :: Game Time


Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.

/**Bismillahir Rahmanir Rahim.**/

#include <stdio.h>
int main()
{
    int a,b;
    scanf ("%d%d", &a, &b);
    if(a==b)
        printf("O JOGO DUROU %d HORA(S)\n",24-a+b);
    else if(a<=b)
        printf ("O JOGO DUROU %d HORA(S)\n",b-a);
    else
        printf("O JOGO DUROU %d HORA(S)\n",24-a+b);
    return 0;
}

1 comment:

  1. -This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work automaketing help 2018 blog.automaketing help login here facebook chat messenger apps.face.book-shopify

    ReplyDelete

Note: only a member of this blog may post a comment.