Chef and Image Processing
All submissions for this problem are available.
Chef is very interested in image processing. In image processing colours are generally written in hexadecimal.In his project chef is given a decimal number and he has to convert it in hexadecimal.As chef is very lazy he has given this task to you.
The first line contains number of test cases T. Each line of test case contain a number N
For each test case, output is the hexadecimal equivalent of that number in small letters
- 1 ≤ T ≤ 10
- 1 ≤ N≤ 103
Input: 2 255 100 Output: ff 64
|Tags||algo1601, cakewalk, dark_archer, maths|
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, PYP3, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.