fix: 失败的solve指令
This commit is contained in:
parent
21276cc6d4
commit
1d452492e5
|
@ -7,7 +7,6 @@ mod fetcher;
|
||||||
|
|
||||||
use crate::fetcher::{CodeDefinition, Problem};
|
use crate::fetcher::{CodeDefinition, Problem};
|
||||||
use regex::Regex;
|
use regex::Regex;
|
||||||
use std::env;
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io;
|
use std::io;
|
||||||
|
@ -63,7 +62,7 @@ async fn main() {
|
||||||
.as_str()
|
.as_str()
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
deal_solving(&id);
|
deal_solving(&id).await;
|
||||||
break;
|
break;
|
||||||
} else if all_pattern.is_match(id_arg) {
|
} else if all_pattern.is_match(id_arg) {
|
||||||
// deal all problems
|
// deal all problems
|
||||||
|
@ -155,7 +154,6 @@ async fn main() {
|
||||||
|
|
||||||
fn generate_random_id(except_ids: &[u32]) -> u32 {
|
fn generate_random_id(except_ids: &[u32]) -> u32 {
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
use std::fs;
|
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
loop {
|
loop {
|
||||||
let res: u32 = rng.gen_range(1, 1106);
|
let res: u32 = rng.gen_range(1, 1106);
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
Loading…
Reference in New Issue
Block a user