#B. 删数(deletinggcd)

    传统题 1000ms 256MiB

删数(deletinggcd)

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Background

Special for beginners, ^_^

Description

给定n个整数。对于其中的每一个数a[i],求出删去它以后剩下的所有数的最大公约数,n<=10^6。

Format

Input

Two integers x and y, satisfying 0x,y327670\leq x,y\leq 32767 .

Output

One integer, the sum of x and y.

Samples

5 12 36 24 18 48
6 6 6 12 6

Limitation

1s, 1024KiB for each test case.

A 最大公约数

未认领
状态
已结束
题目
4
开始时间
2025-7-2 0:00
截止时间
2025-7-31 23:59
可延期
24 小时