結果
| 問題 | 
                            No.858 わり算
                             | 
                    
| コンテスト | |
| ユーザー | 
                             simamumu
                         | 
                    
| 提出日時 | 2019-08-09 21:31:04 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 551 bytes | 
| コンパイル時間 | 96 ms | 
| コンパイル使用メモリ | 12,800 KB | 
| 実行使用メモリ | 11,648 KB | 
| 最終ジャッジ日時 | 2024-07-19 11:16:52 | 
| 合計ジャッジ時間 | 948 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 6 WA * 1 | 
ソースコード
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,copy,time
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(input())
def inpl(): return list(map(int, input().split()))
def inpl_str(): return list(input().split())
A,B = inpl()
if A > B:
    ans = str(A//B) + '.'
    A = A%B*10
else:
    ans = '0.'
    A *= 10
for _ in range(50):
    if A < B:
        ans += '0'
    else:
        tmp = A//B
        A = A%B
        ans += str(tmp)
    A *= 10
print(ans)
            
            
            
        
            
simamumu