//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. java 企业 网站源码 模版 屏幕自适应 有前后台 springmvc SSM 生成静态化

    前台: 支持四套模版, 可以在后台切换 系统介绍: 1.网站后台采用主流的 SSM 框架 jsp JSTL,网站后台采用freemaker静态化模版引擎生成html 2.因为是生成的html,所以访问 ...

  2. 根据ip列表模拟输出redis cluster的主从对应关系

    需求:给点一批ip列表,一个数组或者一个文件,每行一个ip,模拟输出redis cluster的组从关系,前者是master_ip:master_port -> slave_ip:slave_p ...

  3. SVN使用经验

    转载于:Svn发布项目 个人使用体验: 关于svn的相关命令 从服务器检出创建的项目文件夹,向项目中添加文件,右键tortoiseSvn->add 然后右键SVN Commit,选择文件并输入提 ...

  4. 8组 上课啦(Class BUddy Pro)使用体验

    下载上课啦app 进入页面显示的是一个第1周的课表,和可以看到本周为第几周,点击周可以调整第几周显示课表 ,课表内容为整周内容,本周内容一目了然.点击右上角可以进入主设置页面,设置页面可以设置静音模式 ...

  5. Page Visibility API

    在code review时看见同事使用visibilitychange 事件来监听页面的隐藏与显示,之前没有了解过这块,学习一下. document.visibilityState 主要有以下3个状态 ...

  6. JS Radio结合TEXT

    <script> function fun_a(value){ if(value === "on"){ document.getElementById('a').dis ...

  7. [CF662C Binary Table][状压+FWT]

    CF662C Binary Table 一道 FWT 的板子-比较难想就是了 有一个 \(n\) 行 \(m\) 列的表格,每个元素都是 \(0/1\),每次操作可以选择一行或一列,把 \(0/1\) ...

  8. C语言 typedef struct _STUDENT {}STUDENT,*PSTUDENT;

    #include <stdio.h> #include <stdlib.h> #include <string.h> //给stuct _STUDENT 起一个别名 ...

  9. IO流学习之字节流(二)

    字节流缓冲区: 1.BufferedInputStream 构造函数(以字节流为基础进行操作): 常用方法: 代码实例: package InputOutput; import java.io.Buf ...

  10. 控制input中只能输入固定格式内容

    onkeyup 事件会在键盘按键被松开时发生,onafterpaste 是粘贴触发,没有这个事件用onblur吧,失去焦点时发生输入完,点其他地方就会执行. <html lang="e ...