static class LWrap extends LearnerImpl { ReversibleFunction f; Learner base; *(ReversibleFunction *f, Learner *base) {} public void processInOut(Object in, Object out) { in = f.process(in); out = f.process(out); base.processInOut(in, out); } public Object processIn(Object in) { in = f.process(in); in = base.processIn(in); in = f.unprocess(in); return in; } public void toJava(Code code) { f.toJava_process(code); base.toJava(code); f.toJava_unprocess(code); } }
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000511 |
Snippet name: | LWrap (learner) |
Eternal ID of this version: | #1000511/1 |
Text MD5: | 02cc2858d2bac60ae25ba2257d923992 |
Author: | stefan |
Category: | |
Type: | IOIOI |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-09 20:31:05 |
Source code size: | 559 bytes / 25 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 605 / 920 |
Referenced in: | #722 - IOIOI Processor (v15) #738 - IOIOI Solver (v16, most recent one) #1000512 - LPost (learner) #1000532 - LUse (learner) #3000382 - Answer for ferdie (>> t = 1, f = 0) |