結果
問題 | No.3086 愛国心(2) |
ユーザー | mai |
提出日時 | 2021-02-12 21:18:37 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 124 ms / 5,000 ms |
コード長 | 3,181 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-19 20:00:46 |
合計ジャッジ時間 | 1,141 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 82 ms
12,160 KB |
testcase_01 | AC | 124 ms
12,288 KB |
コンパイルメッセージ
Syntax OK
ソースコード
H = 89 W = 101 D = 96 data9='eNrtmWtQVNcdwPnUYfc+gGKCSG0TNQJqQB6yCAjLPffevee+loxRk7RNi00TG580ztTpjDrjyAyp1jYPG0NSW0eSSWq1KkaD8UF8ZKJDrJPogAZqfECI+OLhC9jdnnOWhd3l7gN2meZDzwd253Lu+e3/ef7n/F2u799wOp1jTXC4OWONuPlNvwc2Voi2PeU5G7+4i745nGNjif6md9XYTI5N+G3d9ehrjSzX83nlTNqiy6Iu/Yiev70FP3NGV0/XDyxOSLJqEACeEzSYy1g2RFFrWApHS02ZaZpNkRACD06ASmkCu+Lg9WhgiJ7uf7HJYsrXZIF3I/AAvE2Fk0wLarDWIjIOefnmoZXJbIkdgiGCh6Nq2VTBhoZ74TiBlwWdXn8d2BRXPniOeZzXJM4fQTBA1uYkJq2o6xjCON1vkw9vsiEEa/rBuc1FVC5UbMAI4cZIiphqnvtei2NgzUCQAHq6c2x1Cl2iSUJAhFtpoqxaTJY/NtwdUeiQma3/eoF5RNRtwQCD4kC7lU2q+LgjbAy2RN+FakhPlzSR48MagJN0YTIzb/t/HAMrhER0n6p8gimUFYEDfLgDAFGBFjo7dF4jon63fwmTIKjIFPyIBgCCpHJsXNC85vaN5m1zqcmyNlKCByTqcCK1YCCvGXPundmQx+QqK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ife723nWdrs7K2jvoYb/3K16LjaCZ6Q/xfHb1uXp7vBUVJmSEQrui2ocPpdvv3fgvoqIbTw==' require 'zlib' require 'base64' r = Zlib.inflate(Base64.decode64(data9)) @img9 = r.unpack('C*').to_a def solve(y,x) @img9[y*W+x]*3 end gets.to_i.times do y,x = gets.split.map(&:to_i) pix = solve(y,x) exp = pix p exp end STDERR.puts "nice!"