![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM
GlassHour
这个作者很懒,什么都没留下…
展开
-
hdu2503:a/b + c/d
//hdu2503#include #include using namespace std;int gcd(int a, int b){ int t, r; if(a > b) { t = b; b = a; a = t; } while(a) {原创 2016-05-21 23:29:36 · 717 阅读 · 0 评论 -
hdu2539:点球大战
#include #include //#include using namespace std;int main(){// freopen("in.in", "r", stdin); int N, len, turn, i, j, score[2]; char str[120], xo[2][10]; while(cin >>原创 2016-05-26 10:58:54 · 494 阅读 · 0 评论 -
hdu2521:反素数
#include using namespace std;int G(int x){ int ret = 0; for(int i = 1; i if(x % i == 0) ret++; return ret + 1;}int main(){ int n, a, b, ret,原创 2016-05-26 09:29:28 · 498 阅读 · 0 评论 -
hdu2537:8球胜负
//hdu2537#include using namespace std;int main(){ int n, R, Y; char c; while(cin >> n && n != 0) { cin.get();//吃掉回车 R = Y = 0; while(--n)原创 2016-05-25 22:49:59 · 531 阅读 · 0 评论 -
hdu2535:Vote
//hdu2535#include #include using namespace std;int main(){ int N, sum, m, i; int a[120]; while(cin >> N && N != 0) { sum = 0; for(i = 0; i原创 2016-05-24 11:34:32 · 423 阅读 · 0 评论 -
hdu2520:我是菜鸟,我怕谁
//hdu2520#include using namespace std;int main(){ long t, v, s, i; int T; cin >> T; while(T--) { cin >> t; v = s = 1; i = t - 1; wh原创 2016-05-24 11:02:41 · 452 阅读 · 0 评论 -
hdu2502:月之数
//hdu2502#include using namespace std;int C(int n, int p){ double ret = 1; while(p) { ret *= (double)n / p; p--; n--; } return (int)(ret原创 2016-05-24 10:04:54 · 513 阅读 · 0 评论 -
hdu2504:又见gcd
#include using namespace std;int gcd(int a, int b){ int t, r; if(a > b) { t = b; b = a; a = t; } while(a) { r = b % a;原创 2016-05-24 08:53:02 · 500 阅读 · 0 评论 -
hdu2519:新生晚会
//hdu2519#include #include using namespace std;double home(__int64 n,__int64 m)//返回类型必须是浮点型,不然会造成误差{ __int64 i = m; double sum = 1.0; while(i--) { sum = sum原创 2016-05-21 23:16:40 · 466 阅读 · 0 评论 -
hdu1062:Text Reverse
#include #include #include //#include using namespace std;int main(){ int t,loc;// freopen("in.in", "r", stdin); cin >> t; cin.get();//刚开始把回车读掉 string str; while (t--) {原创 2016-05-26 14:28:46 · 468 阅读 · 0 评论