随笔分类 - 水水更健康
摘要:Drazil has many friends. Some of them are happy and some of them are unhappy. Drazil wants to make all his friends become happy. So he invented the fo...
阅读全文
摘要:Drazil is playing a math game with Varda.Let's definefor positive integerxas a product of factorials of its digits. For example,.First, they choose a ...
阅读全文
摘要:Someday, Drazil wanted to go on date with Varda. Drazil and Varda live on Cartesian plane. Drazil's home is located in point(0, 0)and Varda's home is ...
阅读全文
摘要:Anya has bought a new smartphone that usesBerdroidoperating system. The smartphone menu has exactlynapplications, each application has its own icon. T...
阅读全文
摘要:Little Tanya decided to present her dad a postcard on his Birthday. She has already created a message — stringsof lengthn, consisting of uppercase and...
阅读全文
摘要:Vitaly is a diligent student who never missed a lesson in his five years of studying in the university. He always does his homework on time and passes...
阅读全文
摘要:A and B are preparing themselves for programming contests.An important part of preparing for a competition is sharing programming knowledge from the e...
阅读全文
摘要:A and B are preparing themselves for programming contests.B loves to debug his code. But before he runs the solution and starts debugging, he has to f...
阅读全文
摘要:A and B are preparing themselves for programming contests.To train their logical thinking and solve problems better, A and B decided to play chess. Du...
阅读全文
摘要:Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. A...
阅读全文
摘要:A word or a sentence in some language is called apangramif all the characters of the alphabet of this language appear in itat least once. Pangrams are...
阅读全文
摘要:Ford Prefect got a job as a web developer for a small company that makes towels. His current work task is to create a search engine for the website of...
阅读全文
摘要:One day Vasya was sitting on a not so interesting Maths lesson and making an origami from a rectangularamm × bmm sheet of paper (a > b). Usually the f...
阅读全文
摘要:Description广工的slamdunk可谓是人生赢家,据传说他现在即将拥有一个girlfriend,并且在感情的驱使下他甚至开始学起了做菜! 现在他想为girlfriend做N道菜,每道菜做出来需要Ai分钟,slamdunk一分钟最多能煮M道菜,请问他做完这N道菜所需的最短时间 是多少?(如果...
阅读全文
摘要:Description2015年广东工业大学ACM校赛要来~\(≧▽≦)/~辣辣辣,作为校赛的出题人之一,GG想出了一道水题来考考大家。相信小伙伴们都学过字符串匹配,于是字符串匹配的水题就诞生辣!GG给出了一段长度为N的大写字母序列,现在他要你修改这一段字母序列,使得这段字母序列上最前面的K个字母组...
阅读全文
摘要:DescriptionValera loves his garden, wherenfruit trees grow.This year he will enjoy a great harvest! On thei-th treebifruit grow, they will ripen on a ...
阅读全文
摘要:Description小明的工作是负责记录饭堂中正在排队的人的信息在他的工作中会有三种可能的事件发生: 1.编号为id的学生加入到队伍的最后面 2.排在最前面的学生打完饭离开了队伍 3.老板过来询问当前排在队伍前方第k个的学生的编号由于每天的工作量太大(每天最多有100000个以上事件发生),小明苦...
阅读全文

浙公网安备 33010602011771号