
ACM_水题
luke2834
A junior researcher~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
POJ2538 还能再水一点吗...
#include #include #include #include using namespace std;map mapp;int main(){ mapp['1'] = '`'; mapp['2'] = '1'; mapp['3'] = '2'; mapp['4'] = '3'; mapp['5'] = '4'; mapp['6'] = '5'; mapp['原创 2015-03-15 17:39:47 · 611 阅读 · 0 评论 -
hdu5190 BC#34 水题
水题,4分钟过,还可以~#include #include #include #include #include #include #include #include #include #include #include using namespace std;#define I64_MAX 9223372036854775807 typedef long long原创 2015-03-21 22:38:02 · 503 阅读 · 0 评论 -
POJ1565 水题
#include #include int main(){ char str[33]; while(scanf("%s",str)==1&&strcmp(str,"0")) { int len = strlen(str); int sum = 0; for(int i=0;i<len;i++) { sum += (int)(str[i]-'0') * ((1<原创 2015-03-13 07:22:01 · 585 阅读 · 0 评论 -
Codeforces 653A C#写算法题
前言就是想用c#实现一个网络流算法,但是怕有问题,又懒得手写测试(喂)。。。所以就想在codeforces上过点模板题试试。。但是从没有交过c#的题,这次就写个水题试一试。。感觉c#写题好麻烦。。题意给你n个数,问你存在不存在3个连续的数思路hash一下,然后遍历所有hash值,连续3个不为0就yes实现using System;using System.Collections.Ge原创 2016-04-13 14:28:52 · 505 阅读 · 0 评论