PIHEX - Hexadecimal value of Pi (challenge)
PIHEX
All people use decimal system every day. For all of us the value of Pi is 3.141592653589793238462643383279....
But there is common to use hexadecimal system in programming. The hexadecimal value of Pi is 3.243F6A8885A308D313198A2E037073....
In this problem there is no input and You have to output as many hexadecimal digits of Pi as You can (use capital letters A-F). The score is the number of correct digits after comma.
Example
Output 1:
3.243F6012345
The score is 5, because 6th digit after comma is wrong.
Output 2:
3.243F6A8885A308D313198A2E037073
The score is 30 (all digits are OK).
hide comments
|
miodziu:
2014-03-20 07:20:31
@Francky: No problem, I expected it. But it was worth to try ;-) |
|
Francky:
2014-03-19 16:04:45
I've set another task, and I hope it's an interesting one.
|
|
Robert Gerbicz:
2014-03-19 15:45:45
@ Francky: No, I don't want to setup.
|
|
Francky:
2014-03-19 14:35:19
I think such a new challenge should be set by someone who is well placed in rank list in PIVAL or other like problem. My 2c opinion.
|
|
Robert Gerbicz:
2014-03-19 14:20:05
Yes, it is too similar to PIVAL. One advantage here is that you need to print the answer in hexadecimal, that makes to output faster since you don't need a cotsly base conversion in print/write (from base 2^32 or 2^64 to 10).
|
|
Mitch Schwartz:
2014-03-19 12:49:01
I suspect this isn't sufficiently different from PIVAL to justify it being in challenge section, but we can wait for Robert Gerbicz to make a comment about it. (Additionally, a limit should be mentioned because of SIGXFSZ, regardless of whether the limit is considered reachable.)
|
Added by: | miodziu |
Date: | 2014-03-19 |
Time limit: | 25s |
Source limit: | 4096B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |