結果
| 問題 | No.3637 PANDORA |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-25 14:55:53 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 792 bytes |
| 記録 | |
| コンパイル時間 | 3,209 ms |
| コンパイル使用メモリ | 353,384 KB |
| 実行使用メモリ | 7,728 KB |
| 最終ジャッジ日時 | 2026-08-25 14:56:13 |
| 合計ジャッジ時間 | 7,529 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 2 |
| 小課題1 | 5 % | AC * 2 WA * 2 |
| 小課題2 | 10 % | AC * 2 TLE * 1 -- * 1 |
| 小課題3 | 5 % | AC * 2 TLE * 1 -- * 5 |
| 小課題4 | 10 % | -- * 5 |
| 小課題5 | 20 % | -- * 10 |
| 小課題6 | 20 % | AC * 2 TLE * 1 -- * 13 |
| 小課題7 | 30 % | AC * 6 WA * 2 TLE * 1 -- * 29 |
| 合計 | 0 点 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int i=0; i<n; i++)
#define vi vector<int>//リスト
#define vvi vector<vector<int>>//2次元配列
#define sr(a) sort(a.begin(),a.end())//小さい順に
#define rev(a) reverse(a.begin(),a.end())//順序を逆に
#define coudo(n,x) cout<<fixed<<setprecision(n)<<x;//xを小数点以下n桁表示
int main(){
ll n,q;cin>>n>>q;
string s;cin>>s;
ll tipe,qi;char qs;
string t;
ll f,ok;
rep(i,q){
cin>>tipe;
if(tipe==1){
cin>>qi>>qs;
s[qi-1]=qs;
}
else{
f=0;
cin>>t;
rep(l,t.size()){
ok=0;
rep(j,n){
if(s[j]==t[l]){
ok=1;
}
}
if(ok==0){
f=1;
}
}
if(f==0){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
}
}
}