摘要: import java.util.Scanner;import java.math.BigDecimal;public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); ... 阅读全文
posted @ 2015-07-17 20:19 杨永华 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 第一个线段树,参考别人代码#include#include#include#include#includeusing namespace std;const int MAXN = 55555;int sum[MAXN > 1; build(l, mid, rt > 1; if(p = r... 阅读全文
posted @ 2015-07-17 19:28 杨永华 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;const int MIN = -1u >> 1;int main(){ double a,b; char s1[1000],s2[1000]; char c; ... 阅读全文
posted @ 2015-07-17 10:01 杨永华 阅读(136) 评论(0) 推荐(0) 编辑
摘要: //简单大数相乘,用java很简单import java.util.Scanner;import java.math.BigInteger;public class Main{ public static void main(String[] args){ Scanner in = new Sca... 阅读全文
posted @ 2015-07-16 23:30 杨永华 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int main(){ char a[110][110]; int result[110]; int num = 0,index; memset(a,'a',sizeof(... 阅读全文
posted @ 2015-07-16 23:21 杨永华 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;string pa[22];string des;int main(){ int n; while(cin >> n && n != 0){ cin.ig... 阅读全文
posted @ 2015-07-16 20:26 杨永华 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;char codes[9][12];int k = 1,num;bool solve(){ for(int i = 0; i strlen(codes[i])){ ... 阅读全文
posted @ 2015-07-16 19:51 杨永华 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;char word[5001*201][201];int cmp(const void *a,const void *b){ return strcmp((char*)a ,... 阅读全文
posted @ 2015-07-16 17:26 杨永华 阅读(83) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;/*每行'o'表示1,' '表示0,二进制转换为十进制是ASCII码*/int main(){ string s; getline(cin,s); while(g... 阅读全文
posted @ 2015-07-16 13:56 杨永华 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int main(){ int T, k = 1; double U, I, P; cin >> T; cin.ignore(); string s;... 阅读全文
posted @ 2015-07-16 11:13 杨永华 阅读(139) 评论(0) 推荐(0) 编辑