摘要: //优先队列实现哈夫曼树#include<iostream>#include<cstdio>#include<queue>using namespace std;//法一 struct cmp //最小值优先 { bool operator ()( int &a, int &b) { if(a!=b 阅读全文
posted @ 2020-03-08 10:14 OTULP 阅读(472) 评论(0) 推荐(0) 编辑
摘要: //大数加法 尽量将第零个元素作为个位,想法简单一点#include<iostream>using namespace std;const int N=100;int main(void){ int a[N+1]={0}; int b[N+1]={0}; string s1,s2; cin>>s1; 阅读全文
posted @ 2020-03-08 09:29 OTULP 阅读(163) 评论(0) 推荐(0) 编辑