摘要:
A. The Fair Nut and Elevator 模拟题 反正n小于101 1 #include<bits/stdc++.h> 2 using namespace std; 3 int a[101],n; 4 int main() 5 { 6 7 cin>>n; 8 for(int i=1; 阅读全文
摘要:
A. Ehab and another construction problem 1不行 然后没了 1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int x; 6 cin>>x; 7 if(x==1)cout< 阅读全文
摘要:
C. Insertion Sort 求有多少 1 到 n 的排列 满足条件将前 k 个的数排列以后 最长上升子序列长度为 n−1 以上 队友推了式子 试了下就过了 1 #include<bits/stdc++.h> 2 typedef long long ll; 3 using namespace 阅读全文
摘要:
A.Vasya and Book 三种情况讨论一下 1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int _; 6 scanf("%d",&_); 7 while(_--) 8 { 9 int n,d,x,y; 阅读全文