上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 98 下一页
摘要: A. Theatre Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Theatre Square in the c 阅读全文
posted @ 2017-11-29 08:32 Veritas_des_Liberty 阅读(834) 评论(0) 推荐(0)
摘要: 1 Insertion Sort(40分) 1 Insertion Sort(40分) 题目内容: 實作插入排序法讓一個序列的數字遞增,並輸出數字總共交換了幾次。 比如說一個序列1 3 7 9 2,前四個數字都已經排好了,這時候第五個數字2進來,他必須跟9,7,3交換使得序列變成1 2 3 7 9。 阅读全文
posted @ 2017-11-14 16:26 Veritas_des_Liberty 阅读(235) 评论(0) 推荐(0)
摘要: 转自: http://blog.csdn.net/sinat_27088253/article/details/52137855 http://jingyan.baidu.com/article/0bc808fc55bfbc1bd585b97f.html 1.下载Code::Blocks: 截止到我 阅读全文
posted @ 2017-11-13 16:59 Veritas_des_Liberty 阅读(288) 评论(0) 推荐(0)
摘要: code::block不能调试问题 今天在codeblock不能进行调试,百度总结如下: 1 进行调试的必须是一个project而不能是一个单一的cpp文件。 2 project的路径不能包含中文,尽量不要包含空格,不知道空格会不会有影响。 3 本身没有打开编译器的-g标志,具体:在setting- 阅读全文
posted @ 2017-11-13 16:32 Veritas_des_Liberty 阅读(263) 评论(0) 推荐(0)
摘要: A. The Meaningless Game time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Slastyona and her 阅读全文
posted @ 2017-11-12 18:59 Veritas_des_Liberty 阅读(390) 评论(0) 推荐(0)
摘要: /*堆排序(大顶堆)*/ #include #include using namespace std; void HeapAdjust(int *a,int i,int size) //调整堆 { int lchild=2*i; //i的左孩子节点序号 int rchild=2*i+1; //i的右孩子节点序号 int max=... 阅读全文
posted @ 2017-11-12 17:54 Veritas_des_Liberty 阅读(198) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 using namespace std; 3 4 #define N 100 5 6 int g_array[N]; //存放输入的数字 7 static int count; //存放元素的个数 8 9 //初始化函数 10 void Initial( 阅读全文
posted @ 2017-11-12 17:34 Veritas_des_Liberty 阅读(248) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<math.h>#define M 10^5+10int p[1000000],a[10000001],t=0;int prime(int n){ int i,q; q=(int)sqrt(n); for(i=0;p[i]<=q&&t;i++) if 阅读全文
posted @ 2017-11-08 20:40 Veritas_des_Liberty 阅读(201) 评论(0) 推荐(0)
摘要: You are given several queries. In the i-th query you are given a single positive integer ni. You are to represent ni as a sum of maximum possible numb 阅读全文
posted @ 2017-10-28 22:01 Veritas_des_Liberty 阅读(489) 评论(0) 推荐(0)
摘要: C - Maximum of Maximums of Minimums You are given an array a1, a2, ..., an consisting of n integers, and an integer k. You have to split the array int 阅读全文
posted @ 2017-10-27 18:47 Veritas_des_Liberty 阅读(378) 评论(0) 推荐(0)
上一页 1 ··· 82 83 84 85 86 87 88 89 90 ··· 98 下一页