摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=1311&mosmsg=Submission+received+with+ID+11405247给出几组数据,算出这些数据中高过平均数的个数所占的百分比,保留三位小数View Code #include<stdio.h>int main(){ int i,c; double x[1010],sum,avr,n,ans; scanf( 阅读全文
posted @ 2013-03-08 21:40 执着追求的IT小小鸟 阅读(116) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=1753&mosmsg=Submission+received+with+ID+11404818给出俩个胜利者的分数的和与差,求出这两个分数,用二元一次方程组可以求出答案。注意:根据实际:分数是整数,且不为负View Code #include<stdio.h>int main(){ long long s,d,n; scanf(& 阅读全文
posted @ 2013-03-08 20:01 执着追求的IT小小鸟 阅读(111) 评论(0) 推荐(0) 编辑
摘要: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2307把一个长长的数各个位上的数相加,如果得到的结果大于9,则重复此步骤。只要用字符串接收这个数字,则可以超额完成任务View Code 1 #include<stdio.h> 2 #include<string.h> 3 char str[50]; 4 void pro(int n) 5 { 6 int i=0; 7 whi 阅读全文
posted @ 2013-03-08 19:58 执着追求的IT小小鸟 阅读(174) 评论(0) 推荐(0) 编辑