結果

問題 No.3054 ほぼ直角二等辺三角形
ユーザー tomarint2tomarint2
提出日時 2019-04-01 22:57:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 515 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 72,012 KB
最終ジャッジ日時 2023-08-18 01:59:33
合計ジャッジ時間 3,167 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,656 KB
testcase_01 AC 70 ms
71,716 KB
testcase_02 AC 72 ms
71,828 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(X):
    A=[3,20,119,715,4523,30509,213343,1530983,11203550,83064263,620498643,4643259527,34592032908,254639722327,1832740718223,12680919388801,81678704122892,452951221016511,1574800035301944,8395299939524712,282240813012897282,4457697545906326118,58106920364272792945,693274802905577732102,7864635685729658131835]
    for a in A:
        b = a + 1
        c = int((a * a + b * b) ** 0.5)
        if len(str(c)) != X:
            continue
        return (a,b,c)

X=int(input())
a,b,c=solve(X)
print(a,b,c)
0