Divisiblity of Differences
876B1300· pupil1s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 2 31 8 4
Output
Yes1 4
Sample 2of 3
Input
3 3 31 8 4
Output
No
Sample 3of 3
Input
4 3 52 7 7 7
Output
Yes2 7 7
58%
876B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)