結果
問題 | No.9005 実行時間/使用メモリテスト(テスト用) |
ユーザー |
![]() |
提出日時 | 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 timen = int(input())if n == 1:pass # Minimal time and memoryelif n == 2:# Simulate CPU-intensive operations for approximately 3 secondsstart_time = time.perf_counter()while time.perf_counter() - start_time < 2.95:passelif n == 3:# Allocate 100MB of memorydata = bytearray(100000000) # 100,000,000 bytes = 100MBelif n == 4:# Allocate and process 100MB of memorydata = bytearray(100000000)for i in range(len(data)):data[i] ^= 0xFF # XOR each byte to ensure computationelif n == 5:# Combine memory allocation and intensive computationdata = bytearray(100000000)for i in range(len(data)):data[i] ^= 0xFFstart_time = time.perf_counter()while time.perf_counter() - start_time < 2.95:passprint(0)