結果

問題 No.3054 ほぼ直角二等辺三角形
ユーザー tomarint2tomarint2
提出日時 2019-04-01 23:04:45
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 400 bytes
コンパイル時間 391 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 79,744 KB
最終ジャッジ日時 2023-08-18 02:11:15
合計ジャッジ時間 3,294 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,876 KB
testcase_01 AC 72 ms
71,868 KB
testcase_02 AC 72 ms
71,716 KB
testcase_03 AC 73 ms
71,624 KB
testcase_04 AC 74 ms
71,612 KB
testcase_05 AC 75 ms
71,728 KB
testcase_06 AC 71 ms
71,904 KB
testcase_07 AC 73 ms
71,608 KB
testcase_08 AC 72 ms
71,628 KB
testcase_09 AC 72 ms
71,596 KB
testcase_10 AC 73 ms
72,040 KB
testcase_11 AC 73 ms
71,620 KB
testcase_12 AC 73 ms
71,836 KB
testcase_13 AC 71 ms
71,628 KB
testcase_14 AC 73 ms
71,620 KB
testcase_15 AC 71 ms
71,444 KB
testcase_16 RE -
testcase_17 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(X):
    A=[3,20,119,696,4059,23660,137903,803760,4684659,27304196,159140519,927538920,5406093003,31509019100,183648021599,1070379110496,6238626641379,36361380737780,211929657785303,1235216565974040]
    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