国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設計 > 正文

Game!

2019-11-08 02:50:05
字體:
來源:轉載
供稿:網(wǎng)友

PRoblem Description

One day, zbybr is playing a game with blankcqk, here are the rules of the game:

There is a circle of N stones, zbybr and blankcqk take turns taking the stones.

Each time, one player can choose to take one stone or take two adjacent stones.

You should notice that if there are 4 stones, and zbybr takes the 2nd, the 1st and 3rd stones are still not adjacent.

The winner is the one who takes the last stone.

Now, the game begins and zbybr moves first.

If both of them will play with the best strategy, can you tell me who will win the game?

Input

The first line of input contains an integer T, indicating the number of test cases (T≈100000).

For each case, there is a positive integer N (N ≤ 10^18).

Output

Output the name of the winner. Example Input

2 1 2

Example Output

zbybr zbybr


模擬一下過程發(fā)現(xiàn)n=3的時候先手輸,n>3的時候最后都會變成n=3時的情況

#include <stdio.h>#include <string.h>int main(){ int t; long long int n; scanf("%d",&t); while(t--) { scanf("%lld",&n); if(n<3) printf("zbybr/n"); else printf("blankcqk/n"); } return 0;}
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 沙雅县| 同德县| 奎屯市| 奉化市| 龙胜| 九寨沟县| 磴口县| 景谷| 大邑县| 本溪市| 清丰县| 漾濞| 大丰市| 连州市| 永年县| 京山县| 建水县| 阿瓦提县| 上思县| 凤冈县| 林周县| 南宁市| 会理县| 陇西县| 舞阳县| 县级市| 黑水县| 临海市| 友谊县| 三都| 兴宁市| 依兰县| 静宁县| 永嘉县| 新建县| 霍城县| 屏山县| 洞口县| 扶沟县| 东宁县| 固始县|