
pta
ilikecarrots
一只小透明
展开
-
pta1075
#include <bits/stdc++.h> #define mod 1000000007 using namespace std; struct node { int id; int total; int num; bool flag; int grade[5]= {-2,-2,-2,-2,-2}; } stu[100000]; bool cmp(node ...原创 2019-02-10 12:47:38 · 214 阅读 · 0 评论 -
1050
#include&lt;bits/stdc++.h&gt; using namespace std; int main() { int n,a[10001]; cin&gt;&gt;n; for(int i=0; i&lt;n; i++) scanf("%d",&amp;a[i]); sort(a,a+n); int mm=sqrt(1.0*n)原创 2019-02-11 12:12:31 · 180 阅读 · 0 评论 -
1115
#include &lt;bits/stdc++.h&gt; using namespace std; struct node{ int data,r,l; }t[1001]; int cnt[1001],c=0;//每层的个数 int insert(int root,int v){ if(root==-1){ root=c++; t[root].data=v;t[root].l=t[...原创 2019-02-23 15:27:56 · 189 阅读 · 0 评论