結果

問題 No.1980 [Cherry 4th Tune D] 停止距離
ユーザー ygd.ygd.
提出日時 2022-06-17 21:33:22
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,010 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-17 13:04:27
合計ジャッジ時間 19,344 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 146 ms
10,624 KB
testcase_02 AC 514 ms
10,752 KB
testcase_03 AC 378 ms
10,624 KB
testcase_04 AC 112 ms
10,752 KB
testcase_05 AC 477 ms
10,752 KB
testcase_06 AC 716 ms
10,752 KB
testcase_07 AC 718 ms
10,752 KB
testcase_08 WA -
testcase_09 AC 708 ms
10,752 KB
testcase_10 WA -
testcase_11 AC 724 ms
10,752 KB
testcase_12 AC 732 ms
10,880 KB
testcase_13 AC 739 ms
10,752 KB
testcase_14 AC 719 ms
10,624 KB
testcase_15 WA -
testcase_16 AC 738 ms
10,752 KB
testcase_17 AC 736 ms
10,624 KB
testcase_18 AC 711 ms
10,624 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 714 ms
10,624 KB
testcase_22 AC 725 ms
10,752 KB
testcase_23 AC 705 ms
10,752 KB
testcase_24 WA -
testcase_25 AC 721 ms
10,624 KB
testcase_26 AC 28 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
#input = sys.stdin.readline
input = sys.stdin.buffer.readline #文字列はダメ
#sys.setrecursionlimit(1000000)
#import bisect
#import itertools
#import random
#from heapq import heapify, heappop, heappush
#from collections import defaultdict 
#from collections import deque
#import copy
#import math
#from functools import lru_cache
#@lru_cache(maxsize=None)
MOD = pow(10,9) + 7
#MOD = 998244353
#dx = [1,0,-1,0]
#dy = [0,1,0,-1]
#dx8 = [1,1,0,-1,-1,-1,0,1]
#dy8 = [0,1,1,1,0,-1,-1,-1]


def main():
    N = int(input())
    for _ in range(N):
        T,m,L = map(float,input().split())
        v_ms = (100*m*m*T*T + 20*m*L)**(0.5) - 10*m*T
        ans = v_ms * 3.6
        # print(ans)
        ans_int, ans_syou = str(ans).split('.')
        if len(ans_syou) >= 2:
            ans = ans_int + "." + ans_syou[:2]
        else:
            while len(ans_syou) < 2:
                ans_syou += '0'
            ans = ans_int + "." + ans_syou
        print(ans)

if __name__ == '__main__':
    main()
0