摘要:        
有时候快排/归并之类并不简简单单只是排序,比如快排可以求第k大,归并在部分已排序的情况下效率较高不容易被卡~ #include <bits/stdc++.h> using namespace std; void merge(int a[], int l, int r, int mid) { int     阅读全文
posted @ 2020-03-29 20:06
脂环
阅读(135)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Vova had a pretty weird sleeping schedule. There are hh hours in a day. Vova will sleep exactly nn times. The ii -th time he will sleep exactly after     阅读全文
posted @ 2020-03-29 00:54
脂环
阅读(204)
评论(0)
推荐(0)
        
            
        
        
摘要:        
The next lecture in a high school requires two topics to be discussed. The ii -th topic is interesting by aiai units for the teacher and by bibi units    阅读全文
posted @ 2020-03-29 00:42
脂环
阅读(254)
评论(0)
推荐(0)
        
            
        
        
摘要:        
There is a frog staying to the left of the string s=s1s2…sns=s1s2…sn consisting of nn characters (to be more precise, the frog initially stays at the     阅读全文
posted @ 2020-03-29 00:35
脂环
阅读(387)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Problem Statement Snuke has decided to play a game using cards. He has a deck consisting of NN cards. On the ii -th card from the top, an integer AiAi    阅读全文
posted @ 2020-03-29 00:30
脂环
阅读(268)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号