fix: language version IDs, cache crash, and stress session restore (#352)

## Problem

Codeforces language version IDs were wrong (pointed at old compiler
versions), `LANGUAGE_VERSIONS` was incomplete for most platforms, the
contest picker crashed when `supports_countdown` was stored as a
non-table entry, and `:CP stress` restored a broken IO view on exit.

## Solution

Correct CF `programTypeId` values and default to C++20. Add
`LANGUAGE_VERSIONS` entries for all six platforms. Guard
`get_contest_summaries` against non-table cache entries. Call
`ensure_io_view()` after stress session restore. Shorten the stress
terminal buffer name to a readable `term://stress.py` format.
This commit is contained in:
Barrett Ruth 2026-03-06 20:22:28 -05:00 committed by GitHub
parent 425a8f36e9
commit 1ac521a126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 11 deletions

10
1621.rs Normal file
View 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);
}