-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
区分问题和答案文件夹, 用户指定问题时, 文件放到问题文件夹; 增加了solve #{id}的功能 #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest LGTM
src/main.rs
Outdated
@@ -18,34 +20,48 @@ fn main() { | |||
loop { | |||
println!("Please enter a frontend problem id, or \"random\" to generate a random one."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we add a message to explain the solve $i
command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in 0d72e62
src/main.rs
Outdated
if solved_ids.contains(&id) { | ||
println!( | ||
"The problem you chose is invalid (the problem may have been initialized \ | ||
or may have no rust version)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the error message seems not match the condition that the problem has been solved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aylei fixed, review plz, thx! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
方便用户做题/看答案
增加solve #{id}功能, 方便把problem中的文件转移到solution中