ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2028. URCAPL, Episode 2

How to copy value?
Posted by Zergatul 27 Jan 2021 06:26
I am stuck with this, it seems impossible to value from input to 2 registers.
Re: How to copy value?
Posted by Zergatul 27 Jan 2021 07:01
Ok, you can actually read n from input multiple times. And you can reduce value in current register to zero while increasing 2 (or more) other registers. This leads to copy operation.