原创 [編程題]All-in-All

鏈接:https://www.nowcoder.com/questionTerminal/f7a802e07bf5462c88ab99d490cebc9d?orderByHotValue=1&questionTypes=000100&di

原创 UVA 12293 Box Game

There are two identical boxes. One of them contains n balls, while the othe

原创 GCD hdu 2588

Problem DescriptionThe greatest common divisor GCD(a,b) of two positive integers a and b,sometimes written (a,b),is the

原创 Hdu 1170 Balloon Comes!

Problem DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best prog

原创 hdu 2072 單詞數

Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件沒有什麼意義的事情,就是統計一篇文章裏不同單詞的總數。下面你的任務是幫助xiaoou333解決這個問題。 Input有多組數據,每組一行,每組就是

原创 0和5

小K手中有n張牌,每張牌上有一個一位數的數,這個字數不是0就是5。小K從這些牌在抽出任意張(不能抽0張),排成一行這樣就組成了一個數。使得這個數儘可能大,而且可以被90整除。注意:1.這個數沒有前導0,2.小K不需要使用所有的牌。Inpu

原创 B - 迴文字符串2 HihoCoder - 1721

愚人節那天,小Ho在小Hi的一個迴文字符串中添加了一個字符。你能幫助小Hi找到被添加的是第幾個字符嗎?Input一個只包含小寫字母的字符串S。對於70%的數據,|S| ≤ 1000  對於100%的數據,|S| ≤ 500000Outpu

原创 Frogger

Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another sto

原创 Silver Cow Party

One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held

原创 Lowest Common Multiple Plus hdu 2028

Problem Description求n個數的最小公倍數。 Input輸入包含多個測試實例,每個測試實例的開始是一個正整數n,然後是n個正整數。 Output爲每組測試數據輸出它們的最小公倍數,每個測試實例的輸出佔一行。你可以假設最後的

原创 hdu 1197 Specialized Four-Digit Numbers

Problem DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its

原创 ACM-TC工作室第一次聯合招新賽暨新生第一次月賽

A 你想加入ACM集訓隊嗎? #include<stdio.h> int main() { printf("YES\n"); return 0; } B 求最大值 利用桶排,計算出現過的每一個字符的個數。最後用一個for