五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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ó)家法律
邻水| 建德市| 保定市| 许昌市| 驻马店市| 凤翔县| 华坪县| 黄骅市| 东平县| 巴马| 抚远县| 四川省| 伊宁县| 东台市| 大冶市| 云安县| 楚雄市| 疏附县| 唐山市| 齐齐哈尔市| 祁阳县| 台前县| 高雄县| 通道| 南投县| 梁河县| 安多县| 美姑县| 遵义县| 麻江县| 波密县| 炉霍县| 安康市| 丁青县| 喜德县| 聊城市| 石河子市| 芦山县| 都匀市| 仙游县| 辉南县|