Tuesday 19 July 2016

Solution of URI 2146 :: Password


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 num;
    while(scanf("%d", &num)!=EOF)
        printf("%d\n", num - 1);
    return 0;
}

2 comments:

  1. please, solution in PYTHON

    my Email address: gustavodreche@msn.com

    thank you!!

    ReplyDelete

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