結果

問題 No.2080 Simple Nim Query
ユーザー a aa a
提出日時 2022-10-14 09:35:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 240 bytes
コンパイル時間 397 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 34,888 KB
最終ジャッジ日時 2023-09-08 19:33:50
合計ジャッジ時間 5,439 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,q=list(map(int,input().split()))
a=list(map(int,input().split()))
for _ in range(n):
    t,k,y=list(map(int,input().split()))
    if t==0:
        a[x-1]=y
    elif a[1:y-1].count('1')%2==0:
        print("F")
    else:
        print("S")
0