当前位置:Gxlcms > html代码 > CodeforcesBetaRound#4(Div.2Only)A.Watermelon_html/css_WEB-ITnose

CodeforcesBetaRound#4(Div.2Only)A.Watermelon_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:23人阅读

水题一个,就是记录下已经做过了。


题目大意:

给出一个数,问是否能分成两个偶数。


下面是代码:

#include #include #include #include #include #include #include #include #include #include #include #include #define eps 1e-10#define pi acos(-1.0)#define inf 107374182#define inf64 1152921504606846976#define lc l,m,tr<<1#define rc m + 1,r,tr<<1|1#define zero(a) fabs(a) 0 ? (x) : -(x))#define clear1(A, X, SIZE) memset(A, X, sizeof(A[0]) * (min(SIZE,sizeof(A))))#define clearall(A, X) memset(A, X, sizeof(A))#define memcopy1(A , X, SIZE) memcpy(A , X ,sizeof(X[0])*(SIZE))#define memcopyall(A, X) memcpy(A , X ,sizeof(X))#define max( x, y )  ( ((x) > (y)) ? (x) : (y) )#define min( x, y )  ( ((x) < (y)) ? (x) : (y) )using namespace std;int main(){    int num;    scanf("%d",&num);    bool flat=false;    for(int i=2;i

人气教程排行