statiolake / proconio-rs

Apache License 2.0
126 stars 7 forks source link

Add something like `input_interactive!` #26

Closed statiolake closed 2 years ago

statiolake commented 3 years ago

For interactive problem, OnceSource won't work as expected. To use proconio in such problems we need to explicitly specify LineSource for the source of input!. Preparing a macro that always uses LineSource may be helpful.

vvforekk commented 2 years ago

I think this feature is helpful for especially users who is not familiar with proconio's internal implementation. I would like to work on this, may I create a PR for you?

statiolake commented 2 years ago

Of course :) Thanks.