Timus 1567. SMS-spam 要求計算手機簡訊的收費情況。Timus 1567. SMS-spamTime Limit: 1.0 secondMemory Limit: 64 MBPetr, a student, decided to start his own business. He offers SMS advertising services to the business owners renting offices in the newly built “Prisma”
Timus 1601. AntiCAPS 要求把一段大寫英文字母的文本轉換為適當的小寫英文字母。1601. AntiCAPSTime Limit: 0.5 secondMemory Limit: 64 MBThe blonde Angela has a new whim: internet chats. Of course, as any blonde, shewrites her messages using the upper case. You are the moderator of
文章目錄 InputOutputSample Timus 1080. Map Colouring 討論地圖的著色問題。1080. Map ColouringTime Limit: 1.0 secondMemory Limit: 16 MBWe consider a geographical map with N countries numbered from 1 to N (0 < N < 99). For every
Timus 1727. Znaika's Magic Numbers 要求將指定的正整數分解為一些不同的正整數的和。1727. Znaika's Magic NumbersTime Limit: 0.5 secondMemory Limit: 64 MBZnaika has many interests. For example, now he is investigating the properties of number sets. Znaika writes down some set
文章目錄 InputOutputSample Timus 1110. Power 要求計算乘方(模數)問題。1110. PowerTime Limit: 0.5 secondMemory Limit: 16 MBYou are given the whole numbers N, M and Y. Write a program that will find all whole numbers X in the interval [0,
文章目錄 InputOutputSample Timus 1837. Isenbaev's Number 要求計算 Isenbaev 數。1837. Isenbaev's NumberTime Limit: 0.5 secondMemory Limit: 64 MBVladislav Isenbaev is a two-time champion of Ural, vice champion of TopCoder Open 2009,
Timus 1114. Boxes 要求計算出將兩種顏色的球放到盒子中的各種組合的數目。1114. BoxesTime Limit: 0.6 secondMemory Limit: 16 MBN boxes are lined up in a sequence (1 ≤ N ≤ 20). You have A red balls and B blue balls (0 ≤ A ≤ 15, 0 ≤ B≤ 15). The red balls (and the blue ones) are
Timus 1149. Sinus Dances 要求輸出特定格式的字串。1149. Sinus DancesTime Limit: 1.0 secondMemory Limit: 16 MBLet An = sin(1–sin(2+sin(3–sin(4+…sin(n))…)Let Sn = (…(A1+n)A2+n–1)A3+…+2)An+1For given N print SNInputOne integer N. 1 ≤ N ≤ 200OutputLine
Timus 1150. Digits 要求計算 1 到 N 的正整數中包含 0 .. 9 的數目。1150. DigitsTime Limit: 2.0 secondMemory Limit: 16 MBJohnSmith has decided to number the pages in his notebook from 1 to N.Please, figure out the number of zeros, ones, twos, ... , nines hemight
文章目錄 InputOutputSamples Timus 1201. Which day is it? 要求輸出指定日期的月曆。1201. Which day is it?Time Limit: 1.0 secondMemory Limit: 16 MBSometimes it is of great importance to know which day of the week a given date will be. And
文章目錄 InputOutputSample Timus 1402. Cocktails 要求計算出雞尾酒共有多少種調法。1402. CocktailsTime Limit: 1.0 secondMemory Limit: 16 MBHenryShaker works as a barman in the favorite pub of Vito Maretti. Everyevening he pleases the gangster