跳到正文

Aakw_Tea

1211960

何逸味

在洛谷打开
资料、奖项与版本

资料

编号
1211960
抓取

http://pre.csp-j.com/examStatus.php

eyJ2ZXJzaW9uIjoxLjMsImZlYXR1cmVzIjp7ImxvY2F0aW9uIjp7InJvb20iOnRydWUsIm91dHNpZGUiOnRydWV9fSwic3RvcmVzIjp7Indvb2QiOjUyLCJtZWF0IjoxLCJiYWl0IjowLCJmdXIiOjF9LCJjaGFyYWN0ZXIiOnt9LCJpbmNvbWUiOnsiZ2F0aGVyZXIiOnsiZGVsYXkiOjEwLCJzdG9yZXMiOnsid29vZCI6MH0sInRpbWVMZWZ0Ijo4fSwiYnVpbGRlciI6eyJkZWxheSI6MTAsInN0b3JlcyI6eyJ3b29kIjoyfSwidGltZUxlZnQiOjV9fSwidGltZXJzIjp7fSwiZ2FtZSI6eyJidWlsZGVyIjp7ImxldmVsIjo0fSwiYnVpbGRpbmdzIjp7InRyYXAiOjEsImNhcnQiOjF9LCJwb3B1bGF0aW9uIjowLCJ3b3JrZXJzIjp7fSwib3V0c2lkZSI6eyJzZWVuRm9yZXN0Ijp0cnVlfX0sInBsYXlTdGF0cyI6e30sInByZXZpb3VzIjp7fX0=

C++
#include <bits/stdc++.h>
using namespace std;
int t,n,f;
bool l;
map<string,bool> m;
string s,d;
int main(){
	cin>>t;
	while(t--){
		cin>>n>>s;
		l=true;
		m.clear();
		for(int i=0;i<s.size()-1;i++){
			d=s.substr(i,2); 
//			cout<<d<<" ";
			if(m.find(d)==m.end()){
				m[d]=true;
				f=s.find(d,i+2);
				if(f!=-1){
					l=false;
					cout<<"YES"<<endl;
					break;
				}
			}
		}
		if(l)cout<<"NO"<<endl;
	}
	return 0;
}
代码
                                                        顶顶顶顶          
                                                顶顶顶顶顶顶顶顶顶        
                                    顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶        
                                顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶           
                      顶顶顶顶  顶顶顶顶顶顶顶顶顶顶顶                    
                顶顶顶顶顶顶顶  顶顶顶    顶顶顶顶顶                      
      顶顶顶顶顶顶顶顶顶顶顶顶            顶顶顶顶                        
  顶顶顶顶顶顶顶顶顶顶顶顶顶顶            顶顶顶顶                        
  顶顶顶顶顶顶顶顶顶顶顶顶              顶顶顶顶顶顶顶顶顶顶顶            
  顶顶顶顶顶顶顶顶顶顶顶顶            顶顶顶顶顶顶顶顶顶顶顶顶顶顶     
    顶顶顶顶顶顶顶顶顶顶          顶顶顶顶顶顶      顶顶顶顶顶顶顶        
                顶顶顶顶          顶顶顶顶            顶顶顶顶顶          
                顶顶顶顶        顶顶顶顶    顶顶      顶顶顶顶顶          
                顶顶顶顶        顶顶顶顶    顶顶顶顶  顶顶顶顶顶          
                顶顶顶顶        顶顶顶顶    顶顶顶顶  顶顶顶顶顶          
                顶顶顶顶        顶顶顶顶    顶顶顶    顶顶顶顶顶          
                顶顶顶顶        顶顶顶顶    顶顶顶    顶顶顶顶顶  
                顶顶顶顶        顶顶顶顶  顶顶顶顶    顶顶顶顶顶        
                顶顶顶顶        顶顶顶顶  顶顶顶顶    顶顶顶顶顶       
                顶顶顶顶        顶顶顶顶  顶顶顶顶    顶顶顶顶顶       
                顶顶顶顶        顶顶顶顶  顶顶顶顶    顶顶顶顶顶          
                顶顶顶顶        顶顶顶    顶顶顶顶    顶顶顶顶顶    
    顶顶      顶顶顶顶顶        顶顶顶    顶顶顶      顶顶顶顶顶         
    顶顶顶顶顶顶顶顶顶顶          顶顶    顶顶        顶顶顶顶顶          
      顶顶顶顶顶顶顶顶顶                顶顶顶        顶顶顶顶            
          顶顶顶顶顶顶顶                顶顶顶  顶顶顶顶                  
            顶顶顶顶顶顶              顶顶顶顶    顶顶顶顶                
                  顶顶顶            顶顶顶顶顶      顶顶顶顶顶顶顶        
                                顶顶顶顶顶顶          顶顶顶顶顶顶        
                              顶顶顶顶顶顶            顶顶顶顶顶顶顶      
                            顶顶顶顶顶                  顶顶顶顶顶顶   
                          顶顶顶顶顶                      顶顶顶顶        
                        顶顶顶                              顶顶顶  

My team

GAME: https://www.luogu.com/article/mwbdz3v6

Потому что мы чемпионы!

代码
   ┏┓   ┏┓
 ┏┛┻━━━┛┻┓    
 ┃  神兽   ┃
 ┃   ━   ┃
 ┃ ┳┛ ┗┳ ┃
 ┃       ┃
 ┃   ┻   ┃
 ┃       ┃
 ┗━┓   ┏━┛Codes are far away from bugs with the animal protecting
     ┃   ┃    神兽保佑,代码无bug
     ┃   ┃
     ┃   ┗━━━┓
     ┃         ┣┓
     ┃     	 ┣┛
     ┗┓┓┏━┳┓┏┛  
       ┃┫┫ ┃┫┫          
       ┗┻┛ ┗┻┛  

B 7 139

上课摸鱼就用这个。[hcy_:) | 我是hcy快开门 ]

名字决斗 和 小黑屋 和 I Wanna

一篇爱情小作文

还没有收录这位用户的文章。