摘要:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=429&mosmsg=Submission+received+with+ID+11314444按题意给出的数据输出一定频率的波浪线,注意每个输出后都有空行,excluding last one。View Code 1 #include<stdio.h> 2 int main() 3 { 4 int h,f,i,j,k,n; 5 sc 阅读全文
摘要:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=520&mosmsg=Submission+received+with+ID+11314375输入“小时:分钟”,求出该时刻的时针跟分针夹角,我先求出时针绕过的角度,再求分针绕过的角度,二者的差值就是结果View Code 1 #include<stdio.h> 2 #include<math.h> 3 int main 阅读全文
摘要:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=484&mosmsg=Submission+received+with+ID+11313357任何大于4的偶数都能写成sum of two odd prime number ,只要从小开始逐一判断,然后写出最大和最小的组合就可以了View Code 1 #include<stdio.h> 2 #include<math.h&g 阅读全文