結果
| 問題 |
No.219 巨大数の概算
|
| コンテスト | |
| ユーザー |
jj
|
| 提出日時 | 2016-09-11 23:12:35 |
| 言語 | Fortran (gFortran 14.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 374 bytes |
| コンパイル時間 | 492 ms |
| コンパイル使用メモリ | 32,640 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 03:41:58 |
| 合計ジャッジ時間 | 9,793 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 51 |
ソースコード
program main
implicit none
integer*8::N,i,Z
real*8::A,B,C,log10,XY
real*8,allocatable::AB(:,:)
read *,N
allocate(AB(2,N))
read *,AB
log10 = log(10.0)
do i=1,N
A = AB(1,i)
B = AB(2,i)
C = B*log(A)/log10
Z = FLOOR(C)
XY = 10**(C-DBLE(Z))
print '(i0," ",i0," ",i0)',FLOOR(XY),FLOOR((XY-FLOOR(XY))*10),Z
end do
end program main
jj