done
This commit is contained in:
parent
516d1b02b7
commit
0329c802a6
3 changed files with 15 additions and 1 deletions
10
1621.rs
Normal file
10
1621.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use std::io::{self,Read};
|
||||
fn main(){
|
||||
let mut s=String::new();
|
||||
io::stdin().read_to_string(&mut s).unwrap();
|
||||
let s=s.trim().as_bytes();
|
||||
let(mut mx,mut c)=(1usize,1usize);
|
||||
for i in 1..s.len(){if s[i]==s[i-1]{c+=1;}else{c=1;}if c>mx{mx=c;}}
|
||||
println!("{}",mx);
|
||||
}
|
||||
|
||||
0
a.cc
Normal file
0
a.cc
Normal file
|
|
@ -171,7 +171,11 @@ function M.toggle(generator_cmd, brute_cmd)
|
|||
|
||||
vim.cmd.terminal(cmdline)
|
||||
local term_buf = vim.api.nvim_get_current_buf()
|
||||
pcall(vim.api.nvim_buf_set_name, term_buf, ("term://stress.py '%s' '%s' '%s'"):format(gen_cmd, brute_run_cmd, binary))
|
||||
pcall(
|
||||
vim.api.nvim_buf_set_name,
|
||||
term_buf,
|
||||
("term://stress.py '%s' '%s' '%s'"):format(gen_cmd, brute_run_cmd, binary)
|
||||
)
|
||||
local term_win = vim.api.nvim_get_current_win()
|
||||
|
||||
local cleaned = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue