上一页 1 ··· 14 15 16 17 18
  2016年1月14日
摘要: 有一个点答案错误,求大神指教#include#include#include#includeusing namespace std;struct shu{int zhi,dui,l,r,sum1;}a[32768];int n,sum,root,size,ans;void qian(int a1,i... 阅读全文
posted @ 2016-01-14 17:19 xiyuedong 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #include#include#includestruct shu{int l,r,sum,zhi,dui;}a[100005];int n,xia,root,size,lei,leave;char ch[2];void you(int &a1){int t=a[a1].l;a[a1].l=a[t... 阅读全文
posted @ 2016-01-14 17:17 xiyuedong 阅读(162) 评论(0) 推荐(0) 编辑
摘要: #include#include#includestruct shu{int l,r,sum1,zhi,dui,sum2;}a[100006];int n,root,size,ans;void you(int &a1){int t=a[a1].l;a[a1].l=a[t].r;a[t].r=a1;a... 阅读全文
posted @ 2016-01-14 17:16 xiyuedong 阅读(168) 评论(0) 推荐(0) 编辑
  2015年12月24日
摘要: 1 typedef可以把类型名重命名。例如 typedef int my_i; my_i a; a为整型变量。 typedef struct node *tree; struct node { char data; tree l,r; }; tree bt; ... 阅读全文
posted @ 2015-12-24 19:32 xiyuedong 阅读(224) 评论(2) 推荐(1) 编辑
  2015年12月20日
摘要: //codevs3118 高精度练习之除法//打出了高精除高精,内心有点小激动。//还记得已开始学的时候非常难打#include#includechar s1[600],s2[600];int a1[600],a2[600],a3[600],a4[600],len1,len2,len3,i,j;in... 阅读全文
posted @ 2015-12-20 10:43 xiyuedong 阅读(1658) 评论(0) 推荐(0) 编辑
  2015年12月19日
摘要: //没有在网上测试//手测几组无误//如有错误,还望指出,不胜感激。#include#includeint a1[600],a2,a4[600],len1,i;char a3[600];int main(){ scanf("%s%d",a3,&a2); len1=strlen(a3); ... 阅读全文
posted @ 2015-12-19 20:24 xiyuedong 阅读(422) 评论(1) 推荐(0) 编辑
摘要: //第一次提交全错了,太过相信自己了。//给我教训是注意循环后变量的值,和pascal不一样。//就不贴错误代码了。//codevs3118 高精度练习之除法#include#includechar s1[600],s2[600];int a1[600],a2[600],a3[1000]={0},l... 阅读全文
posted @ 2015-12-19 20:08 xiyuedong 阅读(641) 评论(2) 推荐(0) 编辑
摘要: //作为一名蒟蒻,还请诸位不要吐槽。//第一次打c++高精加,内心有点小激动。//为codevs3116 高精度练习之加法//程序太简单,就不打注释了。#include#includeint main(){char s1[600],s2[600];int a1[600],a2[600],a3[600... 阅读全文
posted @ 2015-12-19 19:49 xiyuedong 阅读(475) 评论(0) 推荐(0) 编辑
摘要: //c++ 普通高精减//codevs3115 高精度练习之减法//内容简单,就不注释了。//注意下,&&优先级高于||。#include#includechar s1[600],s2[600];int a1[600],a2[600],len1,len2,i;int main(){scanf("%s... 阅读全文
posted @ 2015-12-19 19:49 xiyuedong 阅读(551) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18