摘要: 让人无语的蛋疼题,我本来是按照求素数那样想求出有多少个因子,再判断其奇偶,但竟然超时。。也不知道他们有多少个case。。。后来一想,不需要求银子个数,只需判是否开方为整数即可判断其奇偶性,然后就过了#include <iostream>#include <cstdio>#include <cmath>using namespace std;long long ans, n, t;int main() { freopen("a.txt", "r", stdin); while(scanf("%lld" 阅读全文
posted @ 2011-05-16 23:09 KOKO's 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 一道小水题,推一下规律即可//============================================================================// Name : 10161.cpp// Author : // Version :// Copyright : Your copyright notice// Description : Hello World in C++, Ansi-style//============================================================================#incl 阅读全文
posted @ 2011-05-16 22:13 KOKO's 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 这个题真2,一下子就看出来思路,暴力就能过,但题目看的不清,A,B是根据Ax+By = 0,我当成一个点比斜率了。。。//============================================================================// Name : 10167.cpp// Author : // Version :// Copyright : Your copyright notice// Description : Hello World in C++, Ansi-style//=================================== 阅读全文
posted @ 2011-05-16 18:10 KOKO's 阅读(283) 评论(0) 推荐(0) 编辑