摘要: http://code.google.com/codejam/contest/1460488/dashboard#s=p2我做模拟题是一向不行的 这道题搞了我m久 发现我对数字真的是非常不敏感~只是解决了small data而已 large data模拟肯定是不行的这道题 有一个点我觉得很巧妙而且终于将sprintf sscanf strncpy 用了一下 挺好用哒~#include <cstdio>#include <algorithm>#include <cmath>using namespace std;#define MAX 2000000int v 阅读全文
posted @ 2013-01-07 16:05 April_Tsui 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 对于if else if我一直分得非常不清楚 在这上面错了很多次写下今天的一点小感想。#include <stdio.h>int main(){ int a, b ; int m ; scanf("%d %d %d", &a, &b, &m); if( a == 1 && m == 1 ) printf("a=%d\n", a); else if( b == 1 ) printf("a=%d b=%d", a, b); else if(b==2) printf("a=%d 阅读全文
posted @ 2013-01-07 13:42 April_Tsui 阅读(188) 评论(0) 推荐(0) 编辑