EncryptionProblem code: RG05 |
Banks all over the world have increased the security on ATM transaction. They have changed the ATM pin code to three digits which are fed as input to a programs which encrypts these three digits to a number which is the new PIN for every customer. Customer is given that software which runs on his mobile. He inputs his new pin in that software and gets the pin to be entered on the ATM machine. You need to guess the logic for that software so that both bank and customer are at ease of converting the new ATM Pin.
Input
Each line of input consists of a 3 digit number. Inputs are terminated when 0 is encounterred.
Output
Ouput consists of a number for each input number fed to that software.
Example
Input: 999 123 111 127 987 0 Output: 8181261 020680 010120 021461 7256821
| Author: | Chunky |
| Date Added: | 3-10-2010 |
| Time Limit: | 4 sec |
| Source Limit: | 50000 Bytes |
| Languages: | ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.0.0-8, CPP 4.3.2, CS2, D, ERL, F#, FORT, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYTH, PYTH 3.1.2, RUBY, SCALA, SCM guile, SCM qobi, ST, TEXT, WSPC |
Comments

Fetching successful submissions

could u plz tell answer for
could u plz tell answer for 101? thr is some confusion...
or tell what is the max and min length for old pincode...
or simply tell is 000000 is
or simply tell is 000000 is valid or instead we write 0 only ????
@Admin, please answer above
@Admin,
please answer above question.
@vaibhav: answer would be
@vaibhav: answer would be 000000 for 101
if i m getting i/p pattern
if i m getting i/p pattern like
123
020680
999
8181261
.
...
. is it wrong??
can any one tell me??
@ admin if i m getting i/p
@ admin
if i m getting i/p pattern like
123
020680
999
8181261
.
...
. is it wrong??
can any one tell me??
@ admin i m getting runtime
@ admin
i m getting runtime for above.
plzzzz help.
this contest over. so, can
this contest over. so, can anyone send me the solution for this puzzle???
i'll be very thankfull to him/her...
please mail me the source file at subhra44@gmail.com
@ admin u people should have
@ admin
u people should have posted clear test cases...
eg.
u should have posted some inputs which has '0' in them eg. 100,101 etc
all the inputs posted with the question were lying between 101 and 999
some of them should be there less than 100
int this problem there are
int this problem there are total 3 digit number let it be abc we have to multiply print a*b,print b*c and print
reverseof(sum of(a*b+b*c)).
like in 999
first multiply 9*9=81 then again 81 then reverse of (81+81)=261
ans 8181261