結果

問題 No.456 Millions of Submits!
ユーザー 6soukiti296soukiti29
提出日時 2017-07-19 22:11:13
言語 Nim
(2.0.2)
結果
WA  
実行時間 -
コード長 582 bytes
コンパイル時間 3,245 ms
コンパイル使用メモリ 70,988 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-12 13:22:45
合計ジャッジ時間 9,932 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,384 KB
testcase_07 AC 10 ms
4,376 KB
testcase_08 AC 10 ms
4,380 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils,strutils,math

var
    k = stdin.readline.parseInt
    a,b,t,n : float64
    flag : bool
    M,m : float64
    s : string
for i in 1..k:
    (a,b,t) = stdin.readline.split.map(parseFloat)
    n = 1.0
    m = 0.0
    M = 1.0
    flag = true
    while true:
        if pow(n,a) * pow(ln(n),b) <= t:
            m = n
            n += 1.0
        else:
            break
    M = n
    while M - m > 0.000_000_001:
        n = (M + m) / 2.0
        if pow(n,a) * pow(ln(n),b) <= t:
            m = n
        else:
            M = n
    s = $n
    echo s[0..11]
    
    
0