2초 문제에 완전 똑같은 로직으로 작성했는데 러스트는 빠른 입출력이 안돼서 TLE고 C++는 여유롭게 도네.... 억울하다
use std::io::Write; let mut out = std::io::BufWriter::new(std::io::stdout().lock());이 러스트판 cin.tie(NULL); ios_base::sync_with_stdio(false);다... 메모
If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/019ce377-a139-7ab0-acdc-1d311f1ad4ab on your instance and reply to it.

