F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

Hat’s IEEE

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 1016    Accepted Submission(s): 345


Problem Description
Your program will be given floating point numbers (32-bit), and calculate
exponent and fraction.

IEEE 754:
SEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFF

S = sign(1)
E = exponent(8)
F = fraction(23)

NOTE: If you donnot know IEEE 754,you can baidu it:)
 

Input
Each line contains a numbers.
 

Output
For each case, output a line containing two numbers, e (exponent) and f (fraction), by a single space. Fraction must be rounded to six digits after the decimal point.
 

Sample Input
6560.91 -6560.91
 

Sample Output
12 1.601785 12 -1.601785 NOTE: INTEL CPU
 

Author
戴帽子的
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 15:04:24, Gzip enabled