codeforecs Fox and Number Game
来源:互联网 发布:淘宝收信用卡1%手续费 编辑:程序博客网 时间:2024/04/30 21:08
题目链接:http://codeforces.com/problemset/problem/389/A
非常简单的一题,也非常蛋疼的一题。
#include<stdio.h>int GCD(int a, int b){return b==0? a : GCD(b, a%b);}int main(){int n, x, y, i;scanf("%d%d", &n, &x);for(i=1;i<n;i++) {scanf("%d", &y);x=GCD(x,y); }printf("%d", x*n);return 0;}
0 0
- codeforecs Fox and Number Game
- Fox and Number Game
- A. Fox and Number Game
- L - Fox and Number Game
- codeforces Fox and Number Game
- vj --Fox and Number Game
- CF228A题Fox and Number Game
- Codeforces 389A Fox and Number Game
- 389-A Fox and Number Game
- CF 389A:Fox and Number Game
- 优先队列+模拟-Fox and Number Game
- codeforces A. Fox and Number Game
- CodeForces 389A Fox and Number Game
- codeforces 389A Fox and Number Game
- codeforces 389A. Fox and Number Game
- Fox and Number Game(优先队列)
- Codeforces Round #228 (Div. 2) A. Fox and Number Game
- Codeforces Round #228 (Div. 2)A.Fox and Number Game
- UML-用例图
- uva - 10905 - Children's Game(贪心,qsort排序)
- 下一个七年,我是谁?
- OpenRisc-64-添加VGA和I2C模块到ORPSoC并测试验证
- 今年应届生起薪究竟有多高?
- codeforecs Fox and Number Game
- 2013国内各银行+互联网名企今年最新offer薪资
- 寒假折腾Archlinux的一些经验(新手向)--桌面配置篇
- poj2117求割点后最多的块。
- 归途前夜
- Esper学习之十:EPL语法(六)
- 在Eclipse中快速打开project所在文件夹
- 黑马程序员_Java项目_交通灯管理系统
- Cracking the coding interview--Q2.4