https://www.patest.cn/contests/gplt

代码:

L2-21
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//
//struct node{
//   char name[10];
//   int k,k2;
//}s[1005];
//int cmp(node s1,node s2)
//{
//    if(s1.k!=s2.k)
//    return s1.k>s2.k;
//    else
//        return s1.k2<s2.k2;
//}
//int main()
//{
//    int n,x[1005],k;
//    char name[10];
//    while(cin>>n){
//
//            getchar();
//    for(int i=0;i<n;i++)
//    {
//        cin>>s[i].name>>s[i].k2;
//        for(int j=0;j<s[i].k2;j++)
//        {
//            cin>>x[j];
//        }
//        sort(x,x+s[i].k2);
//        s[i].k=unique(x,x+s[i].k2)-x;
//        getchar();
//    }
//    sort(s,s+n,cmp);
//   if(n>2) cout<<s[0].name<<" "<<s[1].name<<" "<<s[2].name<<endl;
//   if(n==2) cout<<s[0].name<<" "<<s[1].name<<" "<<"-"<<endl;
//   if(n==1) cout<<s[0].name<<" "<<"-"<<" "<<"-"<<endl;
//
//    }
//    return 0;
//}

L1-41
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//typedef long long ll;
//int main()
//{
//    ll x,vis=0;
//    ll step=1;
//    while(scanf("%lld",&x)!=EOF)
//    {
//        if(x==250&&vis==0){vis++;cout<<step<<endl;}
//        step++;
//    }
//    return 0;
//}

L1-42
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//char yue[2],nian[4],ri[2],fuhao[2];
//int main()
//{
//    while(cin>>yue[0]>>yue[1]>>fuhao[0]>>ri[0]>>ri[1]>>fuhao[1]>>nian[0]>>nian[1]>>nian[2]>>nian[3])
//    {
//        cout<<nian[0]<<nian[1]<<nian[2]<<nian[3]<<fuhao[0]<<yue[0]<<yue[1]<<fuhao[1]<<ri[0]<<ri[1]<<endl;
//    }
//    return 0;
//}
L1-44
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//string s;
//int main()
//{
//    int k;
//    int step=0;
//    cin>>k;
//    getchar();
//    while(cin>>s)
//    {
//
//        if(s=="End")break;
//        step++;
//        if(step%(k+1)!=0){
//        if(s=="Bu")cout<<"JianDao"<<endl;
//        else if(s=="JianDao")cout<<"ChuiZi"<<endl;
//        else if(s=="ChuiZi")cout<<"Bu"<<endl;
//        }
//        if(step%(k+1)==0){
//        cout<<s<<endl;
//        }
//    }
//    return 0;
//}
L1-45
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//char s[10];
//int main()
//{
//    while(cin>>s)
//    {
//        cout<<"Hello "<<s<<endl;
//    }
//    return 0;
//}
L1-46
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//typedef unsigned long long ll;
//int main()
//{
//    ll x,k,step=1;
//    x=1;
//    cin>>k;
//    while(1)
//    {
//        if(x%k==0){cout<<x/k<<" "<<step<<endl;break;}
//        else {x=x*10+1;step++;}
//    }
//    return 0;
//}
L1-47
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//char s[15];
//int main()
//{
//    int n,x,y;
//    cin>>n;
//    while(n--)
//    {
//        cin>>s>>x>>y;
//        if(x<15||x>20||y<50||y>70)cout<<s<<endl;
//    }
//    return 0;
//}

L2-23
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 200005
//using namespace std;
//vector<int>G[505];
//int color[505];
//int k;
//int op[505];
//int n;
//int v,e;
//bool check()
//{
//    for(int i=1;i<=v;i++)
//        for(int j=0;j<G[i].size();j++)
//    {
//        if(color[i]==color[G[i][j]]) return true;
//    }
//    return false;
//}
//int main()
//{
//    cin>>v>>e>>k;
//    for(int i=0;i<e;i++)
//    {
//        int s,t;
//        cin>>s>>t;
//        G[s].push_back(t);
//        G[t].push_back(s);
//    }
//    cin>>n;
//    while(n--)
//    {
//        for(int i=0;i<v;i++)
//        {
//            cin>>op[i];
//            color[i+1]=op[i];
//        }
//        sort(op,op+v);
//        int ans=unique(op,op+v)-op;
//        //cout<<ans<<endl;
//        //cout<<k;
//       if(ans!=k){cout<<"No"<<endl;}
//       else {
//           if(check()){cout<<"No"<<endl;}
//           else cout<<"Yes"<<endl;
//       }
//    }
//    return 0;
//}
L2-24
//#include<iostream>
//#include<cstdio>
//#include<cstring>
//#include<cmath>
//#include<queue>
//#include<set>
//#include<algorithm>
//#include<map>
//#define maxn 100005
//using namespace std;
//int fa[maxn],ranke[maxn];
//void init(int n)
//{
//    for(int i=0;i<n;i++)
//    {
//        fa[i]=i;
//        ranke[i]=1;
//    }
//}
//int find(int x)
//{
//    if(fa[x]==x)return x;
//    else{
//        return fa[x]=find(fa[x]);
//    }
//}
//void unite(int x,int y)
//{
//    x=find(x);
//    y=find(y);
//    if(x==y)return ;
//     if(ranke[x]<ranke[y])
//    {
//        fa[x]=y;
//        ranke[x]+=ranke[y];
//    }
//    else{
//        fa[y]=x;
//        ranke[y]+=ranke[x];
//       if(ranke[x]==ranke[y])ranke[x]++;
//    }
//}
//bool same(int x,int y)  //判断父亲是否相同
//{
//    return find(x)==find(y);
//}
//
//int main()
//{
//    int n,m,k,ans,x,y,mazz;
//    int s[maxn];
//    while(cin>>m){
//    init(10004);
//    if(m==0)return 0;
//    ans=0;mazz=0;
//    while(m--)
//    {
//       cin>>k;
//       for(int i=0;i<k;i++)
//       {
//           cin>>s[i];
//           if(mazz<s[i])mazz=s[i];
//       }
//       for(int i=0;i<k-1;i++)
//       {
//           unite(s[i],s[i+1]);
//       }
//    }
//    for(int i=1;i<=mazz;i++)
//    {
//        if(i==find(i))ans++;
//    }
//    cout<<mazz<<" "<<ans<<endl;
//    cin>>n;
//    for(int j=0;j<n;j++)
//    {
//        cin>>x>>y;
//        if(same(x,y))cout<<"Y"<<endl;
//        else cout<<"N"<<endl;
//    }
//}
//return 0;
//}

转载于:https://www.cnblogs.com/huangzzz/p/8541221.html

团体程序设计天梯赛 https://www.patest.cn/contests/gplt相关推荐

  1. 2016团体程序设计天梯赛-决赛-部分题解

    题目链接:https://www.patest.cn/contests/gplt 第一个卡的题是"到底是不是太胖了",当时以为卡精度,因为各种eps都过不了..但是结束后队友说不卡 ...

  2. 团体程序设计天梯赛-练习集 L1合集

    来自<https://www.patest.cn/contests/gplt> L1-001. Hello World 这道超级简单的题目没有任何输入. 你只需要在一行中输出著名短句&qu ...

  3. 团体程序设计天梯赛-练习集-L1区001——048C语言全解

    题目链接:https://www.patest.cn/contests/gplt 所有一区的题都是用c语言编写的,都通过了,有的可能设计的比较复杂.仅供参考,同时也感谢网上的一些大佬们提供的思路.如果 ...

  4. 计算机能力挑战赛_蓝桥杯、PAT、CCF CSP、团体程序设计天梯赛、传智杯、计算机能力挑战赛、软考等大学生编程比赛/考试介绍...

    介绍7个适合普通大学生参加的编程比赛/考试(注:有的比赛如蓝桥杯有多种赛别,本文仅介绍其中的程序设计/编程比赛). 编程入门书籍推荐<算法笔记>,内容详细易懂,对新手非常友好,描述语言为C ...

  5. 程序设计天梯赛java_竞赛速递 | 团体程序设计天梯赛

    原标题:竞赛速递 | 团体程序设计天梯赛 新学期已开始,新的挑战.新的机遇也在新的学期来到.即将到来的团体程序设计天梯赛,等你来挑战!无论是低年级同学还是高年级同学,天梯赛都是你不可错失的好机会.积累 ...

  6. 团体程序设计天梯赛——L1-039 古风排版

    团体程序设计天梯赛--L1-039 古风排版 https://pintia.cn/problem-sets/994805046380707840/problems/994805091888906240 ...

  7. PTA|团体程序设计天梯赛-练习题目题解锦集(C/C++)(持续更新中……)

    PTA|团体程序设计天梯赛-练习题目题解锦集(持续更新中) 实现语言:C/C++:      欢迎各位看官交流讨论.指导题解错误:或者分享更快的方法!! 题目链接:https://pintia.cn/ ...

  8. 团体程序设计天梯赛——L1-054 福到了

    团体程序设计天梯赛--L1-054 福到了 https://pintia.cn/problem-sets/994805046380707840/problems/994805076512587776 ...

  9. PTA|团体程序设计天梯赛-练习题库集

    文章目录 关于爬取脚本的编写 L1-001 Hello World! (5 分) L1-002 打印沙漏 (15 分) L1-003 个位数统计 (15 分) L1-004 计算摄氏温度 (5 分) ...

最新文章

  1. 手握2.2亿美元,但想不起密码,还有两次机会,一起支支招啊!
  2. 2019年最流行的10个前端框架
  3. Mac Pro m1 安装 brew/eclipse/visual stadio code/nodejs/git
  4. php之前代码,PHP语法检查源代码前控制
  5. IK分词器(elasticsearch插件)
  6. hud抬头显示器哪个好_显示器TN、IPS、VA面板类型哪个好?
  7. linux 关于数据库的部分命令
  8. 小程序获取用户的openid(详解)
  9. cab和ocx什么区别_CAB的完整形式是什么?
  10. html 自动获取屏幕分辨率,HTML5教程 如何获取手机屏幕分辨率和浏览器分辨率
  11. 骡马盒子搭建详细教程
  12. 大数据就业前景分析-好程序员
  13. Python数据科学学习笔记之——机器学习专题
  14. 中国云计算服务网:盛大云体验报告
  15. 灵活使用 console 让 js 调试更简单
  16. 詹姆斯高斯林_詹姆斯·高斯林(James Gosling)加入RCDb顾问委员会
  17. 深圳-国信证券项目组-市场风险二期
  18. int 等数据类型的含义
  19. VGA及其支持的模式
  20. 【附源码】计算机毕业设计java医院管理系统设计与实现

热门文章

  1. AI修复后的王祖贤和林青霞,真的是人间绝色啊
  2. turtlebot教程整理
  3. 阿里为何成立芯片公司,并取名平头哥?如何应对挑战?阿里CTO这样说
  4. 爬取拉勾网招聘信息(招聘岗位,公司名称,薪资等)
  5. 微信小程序上传图片及文件(上传、下载、删除及预览)
  6. KMP 病毒感染检测
  7. Python机器学习日记4:监督学习算法的一些样本数据集(持续更新)
  8. 物联网课程学习目标_【笨办法学物联网】之一: 物联网工程专业四年里应该学习哪些实用技能傍身?...
  9. 在spring boot应用监控线程池的状态
  10. 世界十大美女城市排行榜出炉:荷兰首都居首位