摘要: #include<iostream> using namespace std; int a; int main() { cin>>a; if((a%100!=0&&a%4==0)||(a%400==0)) cout<<"Y"; else cout<<"N"; } 阅读全文
posted @ 2016-01-28 12:08 OZTOET 阅读(172) 评论(0) 推荐(0)
摘要: #include<iostream> #include<string> #include<cstring> using namespace std; int a[201]; string s;int n; #define rep(i,j,k) for(int i=j;i<=k;i++) #defin 阅读全文
posted @ 2016-01-28 12:07 OZTOET 阅读(461) 评论(0) 推荐(0)
摘要: #include #include #define DIGIT 4#define DEPTH 10000#define MAX 100using namespace std;typedef int bignum_t[MAX+1];int read(bignum_t a,istre... 阅读全文
posted @ 2015-10-05 11:49 OZTOET 阅读(2979) 评论(0) 推荐(0)
摘要: 网上看到的一个贪吃蛇程序,修复了一些bug(如可以直接转反方向,苹果与蛇重叠,撞到自身不会死亡等),下面是源代码。---------------------------------------------------------------------------------------------... 阅读全文
posted @ 2015-06-02 17:42 OZTOET 阅读(328) 评论(0) 推荐(0)
摘要: A. Mike and Faxtime limit per test:1 secondmemory limit per test:256 megabytesinput:standard inputoutput:standard outputWhile Mike was walking in the ... 阅读全文
posted @ 2015-06-02 17:05 OZTOET 阅读(284) 评论(0) 推荐(0)
摘要: B. Mike and Funtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputMike and some bears are playi... 阅读全文
posted @ 2015-06-02 11:45 OZTOET 阅读(155) 评论(0) 推荐(0)