国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 洮南市| 合江县| 高阳县| 孝昌县| 中西区| 芦溪县| 宣威市| 黄陵县| 东辽县| 镇康县| 东兴市| 奉节县| 丰原市| 苍南县| 鸡泽县| 额尔古纳市| 江城| 平利县| 自治县| 柯坪县| 西和县| 上高县| 大足县| 镇平县| 禄丰县| 前郭尔| 江山市| 阜南县| 三台县| 华蓥市| 泸西县| 合山市| 钟祥市| 洮南市| 三江| 日照市| 城步| 云龙县| 镇平县| 苍南县| 枞阳县|