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