
百炼
君骚兮
一天比一天进步
展开
-
百炼1000:A+B Problem
描述Calculate a + b输入Two integer a,,b (0 ≤ a,b ≤ 10)输出Output a + b样例输入1 2样例输出3#include <cstdio>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",a+b);}...原创 2019-08-26 08:39:15 · 283 阅读 · 0 评论 -
百炼1001:Exponentiation
描述Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer syst...原创 2019-08-26 12:24:44 · 299 阅读 · 0 评论 -
百炼1002:方便记忆的电话号码
描述英文字母(除Q和Z外)和电话号码存在着对应关系,如下所示:A,B,C -> 2D,E,F -> 3G,H,I -> 4J,K,L -> 5M,N,O -> 6P,R,S -> 7T,U,V -> 8W,X,Y -> 9标准的电话号码格式是xxx-xxxx,其中x表示0-9中的一个数字。有时为了方便记忆电话号...原创 2019-08-26 15:16:35 · 488 阅读 · 0 评论 -
百炼1003:Hangover
描述How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the t...原创 2019-08-26 15:41:52 · 210 阅读 · 0 评论 -
百炼1004:财务管理
描述Larry今年毕业并找到了一份工作。他赚很多钱,但似乎总是不够。Larry认为他需要控制他的投资以解决自己的财务问题。Larry拿到了自己的银行账户详单,想看看自己有多少钱。请帮助Larry写一个程序,通过过去12个月中每月的月末结余,计算平均结余。输入输入包含12行,每行包含一个数,为某个月的结余。每个数都是不大于1,000,000的正数,保留两位小数,省略"$"符。输出...原创 2019-08-26 15:51:40 · 405 阅读 · 0 评论 -
百炼1005:I Think I Need a Houseboat
描述Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 squ...原创 2019-08-27 07:02:46 · 244 阅读 · 0 评论 -
百炼1006:Biorhythms
描述Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have peri...原创 2019-08-27 08:58:51 · 282 阅读 · 0 评论 -
百炼1007:DNA排序
描述现在有一些长度相等的DNA串(只由ACGT四个字母组成),请将它们按照逆序对的数量多少排序。逆序对指的是字符串A中的两个字符A[i]、A[j],具有i < j 且 A[i] > A[j] 的性质。如字符串”ATCG“中,T和C是一个逆序对,T和G是另一个逆序对,这个字符串的逆序对数为2。输入第1行:两个整数n和m,n(0<n<=50)表示字符串长度...原创 2019-08-27 09:28:33 · 220 阅读 · 0 评论 -
百炼1008:Maya Calendar
描述During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day ...原创 2019-08-27 11:12:29 · 208 阅读 · 0 评论