摘要: #include #include #include #include #include using namespace std; /* * A solution for "The Trip" problem. * UVa ID: 10137 */ #include int main (int argc, const char... 阅读全文
posted @ 2013-10-23 14:15 katago 阅读(637) 评论(0) 推荐(0)
摘要: #include#include#include#include#include#includeusing namespace std;int n, m;char x[101][101];void calc(){ for(int i=0;i=0 && a=0 && b0) printf("\n"); count++; printf("F... 阅读全文
posted @ 2013-10-23 14:13 katago 阅读(670) 评论(0) 推荐(0)
摘要: 总结:1、用cache缓存结果2、不要假设输入数据的顺序,大的可能在前,小的在后3、中间计算结果可能要用long long 保存 阅读全文
posted @ 2013-10-23 13:58 katago 阅读(592) 评论(0) 推荐(0)