码迷,mamicode.com
首页 > 其他好文 > 详细

D. Vasya and Chess

时间:2014-12-04 06:15:06      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   color   os   sp   on   div   log   

这个题略搞笑,蒙的。。。

奇偶判断了下就过了。。。

 

 1 #include <iostream>
 2 #include <stdio.h>
 3 #include <algorithm>
 4 #include <cstring>
 5 #include <string.h>
 6 #include <math.h>
 7 #include <queue>
 8 #include <stack>
 9 #include <stdlib.h>
10 #include <map>
11 using namespace std;
12 #define LL long long 
13 #define sf(a) scanf("%d",&(a));
14 
15 #define N 100010
16 
17 int main(){
18     int n;
19     scanf("%d",&n);
20     if(n%2==0) printf("white\n1 2\n");
21     else printf("black\n");
22 
23 
24     return 0;
25 }

 

D. Vasya and Chess

标签:style   blog   io   color   os   sp   on   div   log   

原文地址:http://www.cnblogs.com/songacm/p/4141876.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!