原创 HDU - 2049(第五天I題)

國慶期間,省城HZ剛剛舉行了一場盛大的集體婚禮,爲了使婚禮進行的豐富一些,司儀臨時想出了有一個有意思的節目,叫做"考新郎",具體的操作是這樣的: 首先,給每位新娘打扮得幾乎一模一樣,並蓋上大大的紅蓋頭隨機坐成一排; 然後,讓各位新郎尋

原创 hdu1213(倒數第三天G題)

Today is Ignatius’ birthday. He invites a lot of friends. Now it’s dinner time. Ignatius wants to know how many table

原创 hdu2845(第四次D)

Bean-eating is an interesting game, everyone owns an MN matrix, which is filled with different qualities beans. Meant

原创 HDU - 1171(第四次B題)

Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don’t know that Computer

原创 HDU2159(第三天第四題)

最近xhd正在玩一款叫做FATE的遊戲,爲了得到極品裝備,xhd在不停的殺怪做任務。久而久之xhd開始對殺怪產生的厭惡感,但又不得不通過殺怪來升完這最後一級。現在的問題是,xhd升掉最後一級還需n的經驗值,xhd還留有m的忍耐度,每殺

原创 第二期白銀組第七題

統計每個元音字母在字符串中出現的次數。 Input 輸入數據首先包括一個整數n,表示測試實例的個數,然後是n行長度不超過100的字符串。 Output 對於每個測試實例輸出5行,格式如下: a:num1 e:num2 i:num3 o

原创 第二期白銀組第八題

統計每個元音字母在字符串中出現的次數。 Input 輸入數據首先包括一個整數n,表示測試實例的個數,然後是n行長度不超過100的字符串。 Output 對於每個測試實例輸出5行,格式如下: a:num1 e:num2 i:num3 o

原创 第一期作業第二題

題目: George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex w

原创 第一期作業第四題

題目: Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case,

原创 第一期作業題6

#include<iostream> #include<stdlib.h> using namespace std; int main() { char b[10]; while (cin >> b) { int i, j;

原创 一期作業題7

#include<iostream> #include<stdlib.h> #include<iomanip> using namespace std; #define PI 3.1415927 int main() { doubl