随笔分类 - 高精度
摘要:从昨天晚上到今天上午一直再rererererererererererererere,最后中午闲着没事在uva上用c++交了一边,结果是= =。。。AC泪奔inghttp://poj.org/problem?id=1001这道题在poj上和uva上不大一样 uva结果是0的时候输出.,poj要输出0View Code #include<stdio.h>#include<string.h>#include<stdlib.h>int a[2005],b[2005],res[2005];int multiply(int n,int len){ int k,max,j
阅读全文
摘要:题目 :http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=98&page=show_problem&problem=276一开始WA了好多遍后来发现是自己的少了中间为零的判断~#include<stdio.h>#include<string.h>int main(){ char s[1000],o; long a,res[1000]; while(scanf("%s %c %ld",s,&o,&a)
阅读全文
摘要:题目http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=406同样的代码,交了两遍一边AC一边WA。。。很蛋疼= =、、、#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>int main(){ char a[3000],b[3000],o; double max = 2147483647; doub
阅读全文
摘要:忽略了零的时候的情况啊!!!题目连接http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1047#include<stdio.h>#include<math.h>#include<string.h>char a[300],b[300];int f[600],count;int main(){ while(scanf("%s%s",a,b) == 2) { int len1,len
阅读全文
摘要:杭电1002 A+Bproblem。。。交了七遍,最后发现原来有五遍是因为没删测试输出= =、、2012-02-19 09:34:23标签:字符串水题添加标签>>A + B Problem IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 98985Accepted Submission(s): 18771Problem DescriptionI have a very simple problem for you. Given
阅读全文