cf/mirror

A Simple GCD Problem (Easy Version)

CF
2210C11200· pupil2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
7
1 2 3 4 5 6 7
1 2 3 4 5 6 7
3
67 67 67
67 67 67
6
8 10 10 12 12 14
8 10 10 12 12 14
8
2 4 8 16 32 64 128 256
2 4 8 16 32 64 128 256
Output
6
0
2
1
2210C1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)