摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2022题目大意:找出绝对值最大的数,并输出行和列~ 1 #include 2 #include 3 int main(void) 4 { 5 int m,n,i,j; 6 int x,y,... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2021题目大意:给老师发工资,找出最少的人民币张数。 1 #include 2 int main () 3 { 4 int a,n,i,sum; 5 while (scanf("%d",... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2020题目大意:按照绝对值大小从大到小排序,注意输出两个数之间要用空格隔开,在这里引入一个冒泡排序,两个循环即可! 1 #include 2 #include 3 int main () 4 { 5 ... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2018题目大意:数学题,找规律,采用递推方法。a[i]=a[i-1]+a[i-3]。 1 #include 2 int main() 3 { 4 int a[100]={0,1,2,3,4}; 5... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2017题目大意:统计数字出现的次数,但是要注意输入字符时,要清流。。要吸收一个回车。还有注意输入时的格式~ 1 #include 2 int main() 3 { 4 int n; 5 c... 阅读全文