alg2025/src/7/21/T636327.cpp
2025-07-21 08:30:51 +08:00

25 lines
295 B
C++

#include <iostream>
#include <istream>
int main(){
std::iostream::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cout.tie(nullptr);
}
/*
input
3
5 7 5
1 8 8
3 1 2
output
3
6
7
5 7 5 -> (5,2),(4,3),(3,4),(2,5),(min(a,b)~b/2,b-div1)
1 8 8 -> (1,7),
3 1 2 -> (1,0),(0,1)
*/