国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

CF 1858A - Buttons

2023-08-16 09:04 作者:您是打尖兒還是住店呢  | 我要投稿


Anna and Katie ended up in a secret laboratory.

There are a+b+c buttons in the laboratory. It turned out that a buttons can only be pressed by Anna, b buttons can only be pressed by Katie, and c buttons can be pressed by either of them. Anna and Katie decided to play a game, taking turns pressing these buttons. Anna makes the first turn. Each button can be pressed at most once, so at some point, one of the girls will not be able to make her turn.

The girl who cannot press a button loses. Determine who will win if both girls play optimally.


Input

The first line contains a single integer t (1≤t≤104) — the number of test cases.

Each test case consists of three integers a, b, and c (1≤a,b,c≤109) — the number of buttons that can only be pressed by Anna, the number of buttons that can only be pressed by Katie, and the number of buttons that can be pressed by either of them, respectively.


Output

For each test case, output First if Anna wins, or Second if Katie wins.

--------------------------------------

安娜和凱蒂最終來(lái)到了一個(gè)秘密實(shí)驗(yàn)室。

實(shí)驗(yàn)室里有a+b+c按鈕。 原來(lái),a按鈕只能由Anna按下,b按鈕只能由Katie按下,c按鈕可以由他們中的任何一個(gè)按下。 安娜和凱蒂?zèng)Q定玩一個(gè)游戲,輪流按下這些按鈕。 安娜第一個(gè)轉(zhuǎn)彎。 每個(gè)按鈕最多只能按一次,因此在某些時(shí)候,其中一個(gè)女孩將無(wú)法輪到她。

不能按下按鈕的女孩就輸了。 如果兩個(gè)女孩都發(fā)揮最佳,確定誰(shuí)會(huì)獲勝。


輸入

第一行包含一個(gè)整數(shù) t (1≤t≤104) — 測(cè)試用例的數(shù)量。

每個(gè)測(cè)試用例由三個(gè)整數(shù) a、b 和 c (1≤a,b,c≤109) 組成 - 只能由 Anna 按下的按鈕數(shù)量,只能由 Katie 按下的按鈕數(shù)量,以及 它們中的任何一個(gè)分別可以按下的按鈕數(shù)量。


輸出

對(duì)于每個(gè)測(cè)試用例,如果 Anna 獲勝,則輸出 First,如果 Katie 獲勝,則輸出 Second。

------------------------------

先判斷c是偶數(shù)還是奇數(shù),然后跟a相加去跟b判斷大小即可;

下面是代碼:


CF 1858A - Buttons的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
双峰县| 平遥县| 海晏县| 措美县| 阿图什市| 阳高县| 诸城市| 武胜县| 久治县| 陇南市| 比如县| 个旧市| 罗平县| 琼结县| 句容市| 舒兰市| 凤城市| 辛集市| 陇南市| 徐州市| 镇赉县| 安新县| 中宁县| 揭西县| 浦江县| 高阳县| 龙游县| 阜康市| 吴桥县| 读书| 广宁县| 长垣县| 龙海市| 凌海市| 建平县| 桐城市| 甘谷县| 洛扎县| 石嘴山市| 祁东县| 成安县|