結果
| 問題 | No.2971 無理積分 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-08 15:09:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 768 ms / 1,000 ms |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 85,316 KB |
| 実行使用メモリ | 81,592 KB |
| 最終ジャッジ日時 | 2026-04-03 20:15:24 |
| 合計ジャッジ時間 | 24,443 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
import random N = int(input()) M = N ** 1.5 ans = M cnt = 5000000 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)