結果
問題 |
No.2080 Simple Nim Query
|
ユーザー |
|
提出日時 | 2022-10-14 10:26:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 29,752 KB |
最終ジャッジ日時 | 2024-06-26 12:30:43 |
合計ジャッジ時間 | 1,469 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 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[x-1:y-1]: if a[x-1:y-1:-1].index(0)%2==0: print("F") else: print("S") else: if (x-y)%2==1: print ("F") else: print("S")