結果
| 問題 | No.2971 無理積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-08 15:08:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 398 ms |
| コンパイル使用メモリ | 82,264 KB |
| 実行使用メモリ | 77,160 KB |
| 最終ジャッジ日時 | 2024-08-08 15:09:32 |
| 合計ジャッジ時間 | 50,896 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 36 |
ソースコード
import random N = int(input()) M = N ** 1.5 ans = M cnt = 10000000 ok = 0 for _ in range(cnt): x, y = random.random(), M + random.random() if y <= (x ** 3 + N ** 3) ** 0.5: ok += 1 print(ans + ok / cnt)