結果
| 問題 |
No.9005 実行時間/使用メモリテスト(テスト用)
|
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-31 17:18:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 815 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,556 KB |
| 実行使用メモリ | 256,452 KB |
| 最終ジャッジ日時 | 2025-03-31 17:19:18 |
| 合計ジャッジ時間 | 7,764 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 MLE * 3 |
ソースコード
import time
n = int(input())
if n == 1:
pass # Minimal time and memory
elif n == 2:
# Simulate CPU-intensive operations for approximately 3 seconds
start_time = time.perf_counter()
while time.perf_counter() - start_time < 2.95:
pass
elif n == 3:
# Allocate 100MB of memory
data = bytearray(100000000) # 100,000,000 bytes = 100MB
elif n == 4:
# Allocate and process 100MB of memory
data = bytearray(100000000)
for i in range(len(data)):
data[i] ^= 0xFF # XOR each byte to ensure computation
elif n == 5:
# Combine memory allocation and intensive computation
data = bytearray(100000000)
for i in range(len(data)):
data[i] ^= 0xFF
start_time = time.perf_counter()
while time.perf_counter() - start_time < 2.95:
pass
print(0)
lam6er