无
无
#include #include int shu(char a) { return (a-'0'); } int main(){ char a[1000],b[1000]; int num[1001]; int n,i,j=1,al,bl,k,t; scanf("%d",&n); while(n--) { if(j!=1)
杭电ACM2000-2011题已提交的代码!保证正确!
杭电acm 1002 答案C++版已通过测试#include#includeusing namespace std;string result( string astr ,string bstr){if(astr.length()>=bstr.length()){int index=0;bstr=string(astr.length()-bstr.length(),'0'...
该楼层疑似违规已被系统折叠隐藏此楼查看此楼A + B Problem IIProblem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.Input Thefirst...
该文件包含了杭电ACM第1002至1025题得个人解题答案,有些答案包含了两种至三种解答。
该楼层疑似违规已被系统折叠隐藏此楼查看此楼A + B Problem IIProblem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.Input Thefirst...
CODE:#include#include#include#includeint main(){int n;int a[1000], b[1000];char a1[1001], b1[1001];if (scanf("%d", &n) != EOF){if (n<1 || n>20) return -1;int tmp = 0;for (tmp = 1;...
image.png思路:首先获取用户输入字符串的长度,然后找到中间的位数,作为循环终止的条件,第一位与最后一位进行判断,同时,第一位要前进一位,最后一位要后退一位,如果相等,则继续,如果不相等,则直接退出循环...
满意答案qwuhtc2013.02.21采纳率:44%等级:9已帮助:313人#include#includeint main(){int n,m;int s[50][5];float h[50]={0},p[5]={0};int i,j,t;while(scanf("%d%d",&n,&m)!=EOF){t=0;for(i=0;i{for(j=0;...
《杭电acm部分题目及答案答案》由会员分享,可在线阅读,更多相关《杭电acm部分题目及答案答案(20页珍藏版)》请在人人文库网上搜索。1、自己刷的题这是我在杭电做题的记录,希望我的分享对你有帮助!1001 Sum ...
该楼层疑似违规已被系统折叠隐藏此楼查看此楼A + B Problem IIProblem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.Input Thefirst...
满意答案skybeyon2013.11.16采纳率:55%等级:11已帮助:6770人【解题思路】这题有两个条件,一是要A-B,这个可以用个标记,而是要排序,个人觉得先排序,再去A-B好做些.代码如下【注】望采纳哦~ 有问题欢迎再问哦~ o(∩_...
该楼层疑似违规已被系统折叠隐藏此楼查看此楼A + B Problem IIProblem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.Input Thefirst...
杭电ACM10910张红杰15162013.11.09浏览129次分享举报Problem DescriptionThe least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers...
杭电OJ1002
杭电题目acm部分答案1001 Sum Problem21089 A+B for Input-Output Practice (I)41090 A+B for Input-Output Practice (II)61091 A+B for Input-Output Practice (III)81092 A+B for Input-Output Practice (IV)91093...
Problem Description 输入一个字符串,判断其是否是C的合法标识符。 ...输入数据包含多个测试实例,数据的第一行是一个整数n,表示测试实例的个数,然后是n行输入数据,每行是一个长度不超过50的字符串。...
该楼层疑似违规已被系统折叠隐藏此楼查看此楼具体题目如下:Problem Description:Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time ...
该楼层疑似违规已被系统折叠隐藏此楼查看此楼#include #include #includevoid main(){int a[17],n,x,y,l,j,k,i,len[20],temp,value,linshi,t,T,length;a[0]=1;char sum[20][15],ch[15],Sum[65],tt[10];...
该楼层疑似违规已被系统折叠隐藏此楼查看此楼具体题目如下:Problem Description:Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time ...
The highest building in our city has only one elevator. A requestlist is made up with N positive numbers. The numbers denote atwhich floors the elevator will stop, in specified order....
http://acm.hdu.edu.cn/showproblem.php?pid=2024 这道题我做了好久啊,基础知识又忘了不少,尤其是字符串的处理,好叭,复习一下。 #include #include using namespace std; int main() { int n,sum...
答案:2信息版本:手机版解决时间 2019-10-02 19:17已解决2019-10-02 15:00c语言,杭电acm1328这题怎么做啊,求提示!!!最佳答案2019-10-02 15:52#include#includeint main(){int n,i,len,count;char str[50];char ...
杭电acm部分题目及答案答案.doc自己刷的题 这是我在杭电做题的记录,希望我的分享对你有帮助1001 Sum Problem*21089 AB for -Output Practice I41090 AB for -Output Practice II61091 AB for -Output Practice III...
[杭电acm的利用此次培训主要锻炼同学们的算法学习,更重要的是锻炼同学们的自学能力,对于我们学计算机的同学来说,自学能力是关键,如果你真的指望从老师那里学到什么的话。。。。。。。。。。。。。。。(千万不能...
1000A + B ProblemTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 158161 Accepted Submission(s): 50186Problem DescriptionCalculate A + B.InputEach ...