两个吃奶一个添下面视频_人妻第一页香蕉网_欧美xxxx少妇_妺妺窝人体色www婷婷

Dotcpp  >  編程題庫  >  [STL訓(xùn)練]第36屆ACM亞洲區(qū)大連站網(wǎng)絡(luò)賽The kth great number
題目 2066:

[STL訓(xùn)練]第36屆ACM亞洲區(qū)大連站網(wǎng)絡(luò)賽The kth great number

時間限制: 2s 內(nèi)存限制: 192MB 提交: 665 解決: 215

題目描述

Xiao Ming and Xiao Bao are playing a simple Numbers game. In a round   Xiao Ming can choose to write down a number, or ask Xiao Bao what the kth great number is. Because the number written by Xiao Ming is  too much, Xiao Bao is feeling giddy. Now, try to help Xiao Bao.

輸入格式

There are several test cases. For each test case, the first line of input contains two positive integer n, k. Then n lines follow. If Xiao Ming choose to write down a number, there will be an " I" followed by a number that Xiao Ming will write down. If Xiao Ming choose to ask Xiao Bao, there will be a "Q", then you need to output  the kth great number. 

輸出格式

The output consists of one integer representing the largest number of  islands that all lie on one line.

樣例輸入

8 3
I 1
I 2
I 3
Q
I 5
Q
I 4
Q

樣例輸出

1
2
3

提示

零基礎(chǔ)同學(xué)可以先學(xué)習(xí)視頻課程,包含C/C++、Python、百練、藍(lán)橋杯輔導(dǎo)、算法數(shù)據(jù)結(jié)構(gòu)等課程,提供視頻講解以及配套習(xí)題,還有老師答疑,點擊這里了解課程詳情
標(biāo)簽