//大连网络赛 1006
// 吐槽:数据比较水。下面代码可以AC
// 但是正解好像是:排序后,前i项的和大于等于i*(i-1) #include <bits/stdc++.h>
using namespace std;
#define LL long long
typedef pair<int,int> pii;
const double inf = 123456789012345.0;
const LL MOD =100000000LL;
const int N =1e4+;
#define clc(a,b) memset(a,b,sizeof(a))
const double eps = 1e-;
void fre() {freopen("in.txt","r",stdin);}
void freout() {freopen("out.txt","w",stdout);}
inline int read() {int x=,f=;char ch=getchar();while(ch>''||ch<'') {if(ch=='-') f=-; ch=getchar();}while(ch>=''&&ch<='') {x=x*+ch-'';ch=getchar();}return x*f;} int main(){
int T;
while(~scanf("%d",&T)){
while(T--){
int n;
scanf("%d",&n);
LL sum=;
int maxx=-;
for(int i=;i<=n;i++){
int x;
scanf("%d",&x);
maxx=max(maxx,x);
sum+=x;
}
if((sum==n*(n-))&&maxx<=(n-)*){
puts("T");
}
else puts("F");
}
}
return ;
}

最新文章

  1. 使用C#处理基于比特流的数据
  2. zepto返回顶部动画
  3. Elasticsearch mapping
  4. win7 删除Windows服务的方法
  5. IBM HTTP Server Performance Tuning
  6. apt-get的常用用法
  7. hdu3410-Passing the Message(RMQ,感觉我写的有点多此一举。。。其实可以用单调栈)
  8. Ubuntu 配置Tomcat环境
  9. 自定义GridLayout实现条目的拖动动画特效
  10. HTML5学习笔记&lt;四&gt;: 列表, 块和布局
  11. 面向对象五大原则(SRP、OCP、LSP、DIP、ISP)
  12. MySQL进阶(一)主外键讲解
  13. 网易面经(Java开发岗)
  14. 数组属性的习题、Arrays工具、二维数组
  15. Mysql千万级大表优化
  16. vue 下拉刷新 上拉加载(vue-scroller)
  17. linux 进程间同步互斥
  18. Python-random 随机数模块
  19. bootstrap 参考文档
  20. Asp.net MVC3 CSS 模板

热门文章

  1. MFC、WTL、WPF、wxWidgets、Qt、GTK、Cocoa、VCL 各有什么特点?
  2. NSDictionary 初始化
  3. makefile使用
  4. UVa 11922 - Permutation Transformer 伸展树
  5. linux kernel启动流程
  6. ios越狱开发第一次尝试记录
  7. awk当中使用外部变量
  8. [NYIST16]矩形嵌套(DP,最长上升子序列)
  9. km算法的个人理解
  10. bzoj3931: [CQOI2015]网络吞吐量