![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OJ基础
mhd_on
这个作者很懒,什么都没留下…
展开
-
HDU 2206 IP的计算 WA
还是WA......我心已碎 先留着wa的 #include #include #include using namespace std; #define MAX 1050 int main() { char v[MAX]; while(gets(v)) { int i, start, flag = 1, point = 1, head = 0, sum = 0, cnt_p原创 2012-12-05 21:04:32 · 296 阅读 · 0 评论 -
HDU 2057 A+B again 16进制数输入输出
这道题错了好多把 #include #include using namespace std; int main() { __int64 a, b; // 之前用int 但数据显然int会爆掉 freopen("in.txt", "r", stdin); while(scanf("%I64X %I64X", &a, &b) != EOF) { if (a+b < 0)原创 2012-12-21 12:44:11 · 353 阅读 · 0 评论 -
HDU 1005 Number Sequence ---- SOLVED
暂不知道怎么办,递归层数过多 Runtime Error (STACK_OVERFLOW) -------2012-04-17 #include using namespace std; int A, B, n; int func( int x ) { if( x == 1 || x == 2) return原创 2012-12-05 21:04:17 · 191 阅读 · 0 评论 -
C/C++ 关于64位整数输入输出
两部分分辨转自 第一部分: http://blog.csdn.net/xuyuanfan77/archive/2011/02/28/6212857.aspx 第二部分: http://blog.renren.com/share/233078254/660331318 第一部分:http://blog.csdn.net/xuyuanfan77/archive/2011/02/28/6转载 2012-12-05 21:04:05 · 1446 阅读 · 0 评论