ICode9

精准搜索请尝试: 精确搜索
  • 1036 [HEOI2012]采花 树状数组 离线操作 区间内出现两次以上数的数量2022-08-11 03:01:25

     链接:https://ac.nowcoder.com/acm/problem/20545来源:牛客网 题目描述 萧芸斓是Z国的公主,平时的一大爱好是采花。 今天天气晴朗,阳光明媚,公主清晨便去了皇宫中新建的花园采花。 花园足够大,容纳了 nnn 朵花,花有 ccc 种颜色(用整数 1−c1-c1−c 表

  • PAT甲级 1036(C++)2021-10-14 18:34:30

    #include<iostream> #include<vector> #include<algorithm> using namespace std; struct stu { string name, id; char s; int grade; }; int N; vector<struct stu>info; bool compare(struct stu s1, struct stu s2) { if (s1.s != s2.s) retur

  • 1036 跟奥巴马一起编程 (15 分)2021-09-28 18:31:10

    美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式: 输入在一行中给出正方形边长 N(3≤N

  • 查看Nginx是否启动2021-08-30 21:33:58

    查看Nginx进程 ps -ef | grep nginx 输出如下: root 1036 1 0 Jul15 ? 00:00:00 nginx: master process /www/server/nginx/sbin/nginx -c /www/server/nginx/conf/nginx.conf www 1048 1036 0 Jul15 ? 00:00:02 nginx: worker process www

  • 1036 Boys vs Girls (25 分)2021-07-30 19:02:13

    1036 Boys vs Girls (25 分) This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a

  • 1036 Boys vs Girls2021-07-09 23:03:23

    题目来源:PAT (Advanced Level) Practice This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case c

  • 1036 Boys vs Girls (25 分)2021-06-19 23:01:26

    This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a positive integer N, follow

  • 1036. Escape a Large Maze2021-03-13 12:34:56

    问题: 给定坐标系:(0,0)~(10^6,10^6) 起点坐标:source(x,y) 目标坐标:target(x,y) 障碍物坐标list:block 求是否能从起点坐标,到目标坐标。 (遇到障碍物,无法继续前进) Example 1: Input: blocked = [[0,1],[1,0]], source = [0,0], target = [0,2] Output: false Explanation: The target

  • 1036 Boys vs Girls (25 分)2021-02-12 15:32:35

    做了几个同类型题后,这种题基本是套路题了吧。 男生最低分数获得者的分数初始化为101、女生最高分数获得者的分数初始化为-1。 在读入学生信息时,根据其性别来判断: 如果是男生,且分数低于当前变量M所记录的分数,则用他的信息覆盖M。 如果是女生,且分数高于当前变量F所记录的分数,则用

  • 1036 Boys vs Girls2021-02-10 14:00:43

    1036 Boys vs Girls This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a positi

  • 1036 Boys vs Girls (25分)2021-01-29 20:59:44

    题目大意:给出n个学生的姓名、性别、ID和成绩。求取得最高分的女生和最低分的男生。分别输出两人的姓名、ID,以及女生成绩减去男生成绩的差。 思路:此处给出两种解法。 使用两个优先队列分别来维护男生和女生的信息。男生队列中成绩低者位于队首,女生队列中成绩高者位于队首。使

  • 1036 跟奥巴马一起编程 (15分)2020-11-03 22:02:27

       美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式: 输入在一行中给出正方形边长

  • 1036 跟奥巴马一起编程 (15分)2020-08-05 14:31:15

    题目 美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 现给定原始序列和由某排序算法产生的中间序

  • 乙级--1036--跟奥巴马一起编程2019-12-08 14:53:14

      1036 跟奥巴马一起编程 (15分) 美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式:

  • 1036 跟奥巴马一起编程 (15 分)2019-10-28 09:06:57

    美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式: 输入在一行中给出正方形边长 N(3

  • leetcode 1036. 逃离大迷宫(bfs)2019-10-25 15:04:36

    题意: 在一个 10^6 x 10^6 的网格中,每个网格块的坐标为 (x, y),其中 0 <= x, y < 10^6。 我们从源方格 source 开始出发,意图赶往目标方格 target。每次移动,我们都可以走到网格中在四个方向上相邻的方格,只要该方格不在给出的封锁列表 blocked 上。 只有在可以通过一系列的移动

  • 树链剖分 HYSBZ - 10362019-10-20 11:52:15

    #include<iostream> #include<cstring> #include<algorithm> #include<cmath> #include<cstdlib> #include<climits> #include<stack> #include<vector> #include<queue> #include<set> #include<map> //#

  • PAT 1036 跟奥巴马一起编程 C语言实现2019-08-14 19:35:31

    美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式: 输入在一行中给出正方形边长 N(3≤

  • PAT乙级10362019-08-10 19:50:30

    题目链接 https://pintia.cn/problem-sets/994805260223102976/problems/994805285812551680 题解 啊有个难题(1034)不会,自闭了,来刷个简单题。这题可简单了,注意一个四舍五入就行。 // PAT BasicLevel 1036 // https://pintia.cn/problem-sets/994805260223102976/problems/994805285

  • 1036 Boys vs Girls (25 分)2019-06-26 08:53:01

    1036 Boys vs Girls (25 分)   This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case co

  • 1036 跟奥巴马一起编程 (15 分)-PAT乙级2019-06-16 16:49:54

    美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式: 输入在一行中给出正方形边长 N(3≤N

  • 1036 Boys vs Girls (25 分)2019-06-16 14:01:00

    This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Input Specification: Each input file contains one test case. Each case contains a positive integer N, follow

  • codevs 1036 商务旅行2019-04-26 23:41:43

      传送门 继续水板子题... #include <bits/stdc++.h>using namespace std;inline int read() { int x = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch &

  • PAT(乙级)1036 跟奥巴马一起编程 (15 分)2019-04-02 19:55:20

    美国总统奥巴马不仅呼吁所有人都学习编程,甚至以身作则编写代码,成为美国历史上首位编写计算机代码的总统。2014 年底,为庆祝“计算机科学教育周”正式启动,奥巴马编写了很简单的计算机代码:在屏幕上画一个正方形。现在你也跟他一起画吧! 输入格式: 输入在一行中给出正方形边长 N(3≤N

  • 1036 跟着奥巴马一起编程2019-03-06 19:54:22

    #include <iostream> using namespace std; int main() { int n; cin>>n; string a; cin>>a; int l; if(n%2==1) { l=n/2+1; } else { l=n/2; } for(int i=0;i<n;i++) {

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有