cf/mirror

Farmer John's Challenge

CF
1942A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
2 2
3 1
3 2
Output
1 1
69420 69 420
-1
1942A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)