結果
問題 | No.2814 Block Game |
ユーザー |
|
提出日時 | 2024-07-20 13:24:06 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 654 bytes |
コンパイル時間 | 337 ms |
コンパイル使用メモリ | 82,264 KB |
実行使用メモリ | 92,560 KB |
最終ジャッジ日時 | 2024-07-20 13:24:13 |
合計ジャッジ時間 | 6,725 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | TLE * 1 -- * 19 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random#sys.setrecursionlimit(10**9)#sys.set_int_max_str_digits(0)#input = sys.stdin.readline#n = int(input())##alist = []#s = input()input = sys.stdin.readlinet = int(input())x = [1<<i for i in range(70)]for i in range(t):n,s = input().split()n =int(n)if n % 2 == 0:if n in x:a = sum(range(1,n+1)) % 2if a == 0 and s == 'Even' or a == 1 and s == 'Odd':print('Alice')else:print('Bob')else:print('Bob')else:print('Alice')