//A
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<cstring>
#include<cmath>

using namespace std;

int main()
{
    int x,y,t;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%d %d",&x,&y);
        long long int z = 6 * pow(2,x+2) * y;
        long long int pt = z;
        if(z%100 != 0)
        {
            pt = (z / 100 + 1) * 100;
        }
        if((x==3 && y>=70) || (x==4 && y>=40) || (x==5)) pt = 12000;
        else if(x==6 || x==7) pt = 18000;
        else if(x>=8 && x<=10) pt = 24000;
        else if(x>=11 && x<=12) pt = 36000;
        else if(x>=13) pt = 48000;
        printf("%lld\n",pt);
    }
    return 0;
}
//B
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<cstring>

using namespace std;

int num[100010],book[100010];

int main()
{
    int n,cnt=0;
    long long sum = 0;
    scanf("%d",&n);
    for(int i=0; i<n; i++) scanf("%d",&num[i]);
    book[0] = 1;
    for(int i=1; i<n; i++)
    {
        if(num[i]>num[i-1]) book[i] = book[i-1] + 1;
        else book[i] = 1;
    }
    for(int i=n-2; i>=0; i--)
    {
        if(num[i]>num[i+1] && book[i]<=book[i+1]) book[i] = book[i+1] + 1;
    }
    for(int i=0; i<n; i++) sum += book[i];
    printf("%lld\n",sum);
    return 0;
}
//J
#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<cstring>

using namespace std;

bool InYuan(int r,int a,int b,int x,int y)
{
    return ((x-a)*(x-a) + (y-b)*(y-b) <= r*r);
}

bool InJu(int x1,int x2,int y1,int y2,int x,int y)
{
    return (x<=x2 && x>=x1 && y>=y1 && y<=y2);
}

int main()
{
    int w,h,xc,yc,r,x1,y1,x2,y2;
    scanf("%d %d %d %d %d %d %d %d %d",&w,&h,&xc,&yc,&r,&x1,&y1,&x2,&y2);
    if(x1 == x2)
    {
        int l = abs(y1 - y2);
        if(y2 > y1) x2 += l;
        else if(y1 > y2) x1 -= l;
    }
    else if(y1 == y2)
    {
        int l = abs(x1 - x2);
        if(x2 > x1) y1 -= l;
        else if(x1 > x2) y2 += l;
    }
    if(x1 > x2) swap(x1,x2);
    if(y1 > y2) swap(y1,y2);
    for(int i=0; i<w; i++)
    {
        for(int j=0; j<h; j++)
        {
            if(InYuan(r,xc,yc,i,j) || InJu(x1,x2,y1,y2,i,j))
            {
                printf("/");
            }
            else
            {
                printf("\\");
            }
        }
        printf("\n");
    }
    return 0;
}

2.2测试赛AC代码临时保存的更多相关文章

  1. 2.4测试赛AC代码临时保存

    //H #include<cstdio> #include<cstdlib> #include<cstring> #include<stack> usi ...

  2. VJ数论专题AC代码临时保存

    //A #include<bits/stdc++.h> using namespace std; bool vis[1000010]; void Get_Prime() { int n = ...

  3. 【南阳OJ分类之语言入门】80题题目+AC代码汇总

    小技巧:本文之前由csdn自动生成了一个目录,不必下拉一个一个去找,可通过目录标题直接定位. 本文转载自本人的csdn博客,复制过来的,排版就不弄了,欢迎转载. 声明: 题目部分皆为南阳OJ题目. 代 ...

  4. python爬虫学习(7) —— 爬取你的AC代码

    上一篇文章中,我们介绍了python爬虫利器--requests,并且拿HDU做了小测试. 这篇文章,我们来爬取一下自己AC的代码. 1 确定ac代码对应的页面 如下图所示,我们一般情况可以通过该顺序 ...

  5. 2018.12.21 浪在ACM 集训队第十次测试赛

     浪在ACM 集训队第十次测试赛 A Diverse Substring B Vasya and Books C Birthday D LCM A 传送门 题解 B 传送门 题解: 这道题,就比较简单 ...

  6. nowcoder(牛客网)OI测试赛3 解题报告

    昨天因为胡搞了一会儿社团的事情,所以错过(逃过)了nowcoder的测试赛..... 以上,听说还是普及组难度qwq,而且还有很多大佬AK(然而我这么蒻肯定还是觉得有点难度的吧qwq) 不过我还是日常 ...

  7. 牛客OI赛制测试赛2(0906)

    牛客OI赛制测试赛2(0906) A :无序组数 题目描述 给出一个二元组(A,B) 求出无序二元组(a,b) 使得(a|A,b|B)的组数 无序意思就是(a,b)和(b,a) 算一组. 输入描述: ...

  8. 2018.12.14 浪在ACM 集训队第九次测试赛

    浪在ACM 集训队第九次测试赛 B Battleship E Masha and two friends B 传送门 题意: 战船上有占地n*n的房间cells[][],只由当cells[i][j]= ...

  9. HDU2449 Gauss Elimination 高斯消元 高精度 (C++ AC代码)

    原文链接https://www.cnblogs.com/zhouzhendong/p/HDU2449.html 题目传送门 - HDU2449 题意 高精度高斯消元. 输入 $n$ 个 $n$ 元方程 ...

随机推荐

  1. Charles老版本教程

    链接:http://pan.baidu.com/s/1c16PxEo  刮开有奖->密码:dbml 初级篇: 1.1设置代理 1.2参数设置+界面介绍 1.3屏蔽多余数据 1.4请求重发 1.5 ...

  2. Openshift与Kubernetes的区别

    Openshift与Kubernetes的区别 Openshift首个支持企业级 Java 的 PaaS 平台,支持 JEE6 与 JBoss 和其 Eclipse 集成开发环境以及 Maven 和 ...

  3. <packaging>pom</packaging>是什么意思

    <packaging>pom</packaging>是什么意思? 答: 以下配置<packaging>pom</packaging>的意思是使用mave ...

  4. c#画图之雷达图

    public JsonResult DrawRadar() { List<Color> colors = new List<Color>() { Color.FromArgb( ...

  5. 离散对数及其拓展 大步小步算法 BSGS

    离散对数及其拓展 离散对数是在群Zp∗Z_{p}^{*}Zp∗​而言的,其中ppp是素数.即在在群Zp∗Z_{p}^{*}Zp∗​内,aaa是生成元,求关于xxx的方程ax=ba^x=bax=b的解, ...

  6. 【pycharm基本操作】项目创建、切换、运行、字体颜色设置,常见包的安装步骤

    创建新项目 退出项目 怎样区别虚拟环境和系统环境? 虚拟环境和系统环境切换:进入项目切换解释器 切换项目 创建python目录和文件 代码运行方式一: 还可以这样执行代码方式二: 文件的剪切.复制.删 ...

  7. axios上传图片遇见问题

    博客后台,vue-quill-editor 编辑器,上传图片,使用sm.ms图床,上传逻辑需要自定义,element-ui,el-upload,自定义http-request上传图片, 'conten ...

  8. 如何在CentOS上安装Tensorflow的gpu版本?

    系统配置 系统版本: Centos7.6 语言: Python3.5(anaconda3 4.2) 框架: Tensorflow 安装依赖 sudo yum install openjdk-8-jdk ...

  9. python正式学习第二天

    用python操作文件 步骤一:找到文件,打开文件 步骤二:修改文件 ,读取文件 步骤三:关闭文件,并保存 用代码演示如下: 1. f = open(file nama)2. f.read(#读取的字 ...

  10. C#Linq的10个练习

    1.LINQ的两种语法 LINQ查询时有两种语法可供选择:查询表达式(Query Expression)和方法语法(Fluent Syntax). .NET公共语言运行库(CLR)并不具有查询表达式的 ...