結果
問題 | No.3086 愛国心(2) |
ユーザー | mai |
提出日時 | 2021-02-12 21:00:29 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 4,470 bytes |
コンパイル時間 | 58 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-07-19 19:46:01 |
合計ジャッジ時間 | 910 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
コンパイルメッセージ
Syntax OK
ソースコード
H = 89 W = 101 D = 96 data3='eNrtXAtwVOUV/s6xdsTRjmNrB0FAkJAQiUV5VGV8RKVpGWIF7PiojJ2OMkatr84gKAWto+ATsCARbEYlBmGgoigllRoBMcuSJQ/IOxA2hCSEJMijjS6bsd+9u3t3k2yS3WSTbDrOHZLN3nv//3z/eX3nf9CiLT9cIVwu8xroGL5thWegomj2ftqj7+qZNt8NPBSf6CUaI2uQIQ9ppfe7ZnUPAAxuy4rO6BItkmoMwVJk40pMwF0yTrMGhK35pTuo9+hSeROjsQ7HUYn9/FmC3yEGKsdklfWcK6p9O0tj9VaZiCTsQC0Ows7LQa3km3+9gzhk4H3amtOyNVfU6aJZU7VBTmEYnkMxnNSCB4XnyoENecTixC5MRDxmynj9MmrQ+O3pqKboBskgivUc+0PUgCMAhf8yvitENSowh8+eK42WrfWf5/h73qOTdLZM5zhnoRHlrTQR/DLuVxNxKkbiI7wnD2pVxCKBu83v9n8F9tBsRdl1+p1cJGPxAGU7RnvK7hKF79rDJyuJJhNTMBV3SILuDIrG1apvtyWVu4NYHhyJK8hnn03X6QLNks84qmm0FSdtxh4yCr9u7ChFFQ7gaQzHWZyQt71j5GoV31ytpOgcSXj2lK9JOl9mMqpmcVRL6cnhowi0tAJqpxqGl32AdbS1w72YdfxtbtYLNYH2lMj+G0xNOCJwGSNRjiZG7nja2iyJ78DWenb5fOKkvqp5UoExeIF6qCOSbMZWR8QuO9srQT01nMKs8z3qZbXVd3PEUJTpfczaj7OHLb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E8FlLpk/1HHKbIdhIHp3sRTJD1mETLsX5cp5uGxDnmJutfWuX6igBYsxV7Aody89xMtw6SdZbJ+W7PpnZ9k5bzhk4vr56LlcH62Ip5Kf9uoxcsMD75JkOT00Gl8zd45OZnSFxtWPRrqDISsz9eE1e/hHMoiKLpLfiQDgyR///xPD/gKLvr/8BuEBfiQ==' require 'zlib' require 'base64' r = Zlib.inflate(Base64.decode64(data3)) @img3 = r.unpack('S*').to_a def solve(y,x) @img3[y*W+x]+100 end gets.to_i.times do y,x = gets.split.map(&:to_i) pix = solve(y,x) exp = pix p exp end