
gcd
文章平均质量分 58
阿阿阿黄
后续文章更新:https://segmentfault.com/u/aaahuang
展开
-
CodeForces 7C(扩展欧几里德解方程)
Description A line on the plane is described by an equation Ax + By + C = 0. You are to find any point on this line, whose coordinates are integer numbers from - 5·1018 to 5·1018 inclusive, or t原创 2015-12-08 13:19:28 · 613 阅读 · 0 评论 -
hdu--1286(欧拉函数入门基础)
找新朋友 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 10130 Accepted Submission(s): 5352 Problem Description 新年快到了,“猪头帮协会”准备搞一个聚会原创 2016-03-17 19:50:00 · 372 阅读 · 0 评论 -
bzoj-2705
Longge的问题 Time Limit:3000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status Description Longge的数学成绩非常好,并且他非常乐于挑战高难度的数学问题。现在问题来了:给定一个整数N,你需要求出∑gcd(i, N)(1原创 2016-03-17 19:43:06 · 395 阅读 · 0 评论 -
bzoj--2190
仪仗队 Time Limit:10000MS Memory Limit:265216KB 64bit IO Format:%lld & %llu Submit Status Description 作为体育委员,C君负责这次运动会仪仗队的训练。仪仗队是由学生组成的N * N的方阵,为了保证队伍在行进中整齐划一,C君会跟在仪仗队的左后方,根据其原创 2016-03-17 21:35:23 · 323 阅读 · 0 评论