結果
問題 | No.3025 |
ユーザー | くれちー |
提出日時 | 2018-05-27 21:26:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 129 ms / 1,500 ms |
コード長 | 1,390 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 82,644 KB |
実行使用メモリ | 182,912 KB |
最終ジャッジ日時 | 2024-10-07 19:19:25 |
合計ジャッジ時間 | 1,075 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ソースコード
import sys a = 0 b = 0 c = 0 d = 0 bp = 0 sp = 0 pc = 0 mem = [0] * (1 << 24) mem[0] = 118 mem[1] = 111 mem[2] = 105 mem[3] = 100 mem[4] = 10 mem[6] = 7 def func0(): global a global b global c global d global bp global sp global pc global mem while 0 <= pc and pc < 512: if False: pass elif pc == 0: if True: pc = 1 - 1 elif pc == 1: d = sp d = (d + 16777215) & 16777215 mem[d] = bp sp = d bp = sp sp = (sp - 1) & 16777215 a = 0 b = sp a = 0 b = bp b = (b + 16777215) & 16777215 mem[b] = a elif pc == 2: b = bp b = (b + 16777215) & 16777215 a = mem[b] b = a a = mem[b] if a == 0: pc = 4 - 1 elif pc == 3: if True: pc = 5 - 1 elif pc == 4: if True: pc = 7 - 1 elif pc == 5: b = bp b = (b + 16777215) & 16777215 a = mem[b] b = a a = mem[b] d = sp d = (d + 16777215) & 16777215 mem[d] = a sp = d sys.stdout.write(chr(a)) sp = (sp + 1) & 16777215 elif pc == 6: b = bp b = (b + 16777215) & 16777215 a = mem[b] d = sp d = (d + 16777215) & 16777215 mem[d] = a sp = d a = (a + 1) & 16777215 b = bp b = (b + 16777215) & 16777215 mem[b] = a a = mem[sp] sp = (sp + 1) & 16777215 if True: pc = 2 - 1 elif pc == 7: a = 0 b = a sys.exit(0) sys.exit(0) pc += 1 while True: if False: pass elif pc < 512: func0()