随笔分类 - cf
摘要:A :题目:A. Vanya and Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya loves playing. He even has a special set of cards to play with. Each card has a single integer. The number on the card can be positive, negative and can even be equal to
阅读全文
摘要:A. NineteenAlice likes word "nineteen" very much. She has a stringsand wants the string to contain as many such words as possible. For that reason she can rearrange the letters of the string.For example, if she has string "xiineteenppnnnewtnee", she can get string "xnineteen
阅读全文
摘要:Manao is designing the genetic code for a new type of algae to efficiently produce fuel. Specifically, Manao is focusing on a stretch of DNA that encodes one protein. The stretch of DNA is represented by a string containing only the characters 'A', 'T', 'G' and 'C'.Ma
阅读全文
摘要:390 A. Inna and Alarm Clockhttp://codeforces.com/contest/390/problem/A水题一枚,两个set就可完成 1 #include 2 #include 3 #include 4 using namespace std; 5 6 sets1,s2; 7 8 int main() 9 {10 int n,a,b;11 while(cin>>n)12 {13 s1.clear();14 s2.clear();15 while(n--)16 {17 ...
阅读全文

浙公网安备 33010602011771号