結果
問題 | No.8054 ほぼ直角二等辺三角形 |
ユーザー |
|
提出日時 | 2019-04-01 23:32:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 2,000 ms |
コード長 | 474 bytes |
コンパイル時間 | 382 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-27 04:46:43 |
合計ジャッジ時間 | 2,346 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 |
ソースコード
import maths = "3 20 119 4059 23660 137903 4684659 27304196 159140519 5406093003 31509019100 183648021599 1070379110496 36361380737780 2119296577853031235216565974040 41961001862379596 244566641436218639"s = list(map(int, s.split()))X = int(input())a = s[X - 1]b = a + 1tmp = a * a + b * bt = int(math.sqrt(tmp))if t * t == tmp:print(a, b, t)exit(0)for c in range(t - 100, t + 100):if c * c == tmp:breakassert(c * c == tmp)print(a, b, c)