摘要: 做了前两场虽然有点恶心,但也没今天那么想吐嘈.... 反正是一题未A..不得不承认依旧很菜..A题,死了命的提示结果错误.... 显然已模拟题.封装 remove 与 maintain 然后print.. 各种情况都考虑,将其后台数据都输出比较.还是未找到错误点在哪里..#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>using namespace std;const int N = 50;char mp[N][N];int n, m;bool vis[N] 阅读全文
posted @ 2013-05-22 23:03 yefeng1627 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 题目来源: 2012天津现场赛A, 背景为麻将的模拟题,按照要求模拟就好。B,sqrt(N)分解因子,然后暴力算即可#include<cstdio>#include<cstdlib>#include<cstring>#include<string>#include<algorithm>using namespace std;int sum(int x,int b){ int res = 0; while(x){ res += (x%b)*(x%b); x /= b; } return res;}char mp[50] = " 阅读全文
posted @ 2013-05-22 12:13 yefeng1627 阅读(194) 评论(0) 推荐(0) 编辑

Launch CodeCogs Equation Editor