結果
| 問題 |
No.2080 Simple Nim Query
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-14 10:18:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 433 bytes |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 29,876 KB |
| 最終ジャッジ日時 | 2024-06-26 12:30:42 |
| 合計ジャッジ時間 | 1,439 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 2 |
| other | RE * 8 |
ソースコード
n,q=list(map(int,input().split()))
a=[1 if i=='1' else 0 for i in input()]
for _ in range(q):
t,x,y=list(map(int,input().split()))
if t==1:
if y==1:
a[x-1]=1
else:
a[x-1]=0
elif 0 in a[0:y-1]:
if a[0:y-1:-1].index(0)%2==0:
print("F")
else:
print("S")
else:
if y%2==1:
print ("F")
else:
print("S")