ICode9

精准搜索请尝试: 精确搜索
  • 1006 Sign In and Sign Out(25分)2022-08-14 22:30:42

    At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you are supposed to find the ones who have unloc

  • 2022“杭电杯”中国大学生算法设计超级联赛(7)部分题题解2022-08-11 10:04:50

    1008 Triangle Game 留坑待填 1006 Sumire 留坑待填

  • 1006 二叉苹果树 树上背包2022-08-01 22:33:19

    链接:https://ac.nowcoder.com/acm/contest/25022/1006来源:牛客网 题目描述 有一棵二叉苹果树,如果数字有分叉,一定是分两叉,即没有只有一个儿子的节点。这棵树共N个节点,标号1至N,树根编号一定为1。 我们用一根树枝两端连接的节点编号描述一根树枝的位置。一棵

  • 1006 免费馅饼 动态规划 线性DP2022-07-05 04:31:05

    链接:https://ac.nowcoder.com/acm/contest/24213/1006来源:牛客网 题目描述   SERKOI最新推出了一种叫做“免费馅饼”的游戏:游戏在一个舞台上进行。舞台的宽度为W格,天幕的高度为H格,游戏者占一格。开始时游戏者站在舞台的正中央,手里拿着一个托盘。下

  • http://ybt.ssoier.cn:8088/problem_show.php?pid=10062022-05-30 19:31:19

    1006:A+B问题 时间限制: 1000 ms         内存限制: 66536 KB 【题目描述】 大部分的在线题库,都会将A+B问题作为第一题,以帮助新手熟悉平台的使用方法。 A+B问题的题目描述如下:给定两个整数A和B,输出A+B的值。保证A、B及结果均在整型范围内。现在请你解决这一问题。 【输入

  • PAT 乙级 1006 换个格式输出整数 (15 分)2022-02-10 17:02:01

    让我们用字母 B 来表示“百”、字母 S 表示“十”,用 12...n 来表示不为零的个位数字 n(<10),换个格式来输出任一个不超过 3 位的正整数。例如 234 应该被输出为 BBSSS1234,因为它有 2 个“百”、3 个“十”、以及个位的 4。 输入格式: 每个测试输入包含 1 个测试用例,给出正整数 n(<

  • 1006 Sign In and Sign Out2022-01-27 19:33:10

    #include<stdio.h> #include<algorithm> #include<vector> #include<string.h> using namespace std; struct people { char name[16]; int in; int out; }t; int main() { vector<people>s; int a, b, c, d, e, f, i, j,m

  • 1006 Sign In and Sign Out (25 分)2022-01-22 15:30:00

    题目来源 #include<iostream> #include<climits> using namespace std; int main() { int n,min=INT_MAX,max=INT_MIN; cin>>n; string unlock,lock; for(int i=0;i<n;i++) { strint t; cin>>t;//名字 int s1,f1,m1,s2,f2,m2;//进入时间和出去时间

  • day3 1006 换个格式输出整数2021-12-24 23:59:11

    让我们用字母 B 来表示“百”、字母 S 表示“十”,用 12...n 来表示不为零的个位数字 n(<10),换个格式来输出任一个不超过 3 位的正整数。例如 234 应该被输出为 BBSSS1234,因为它有 2 个“百”、3 个“十”、以及个位的 4。 输入格式: 每个测试输入包含 1 个测试用例,给出正

  • PAT 1006 换个格式输出整数2021-11-28 21:02:28

    让我们用字母 B 来表示“百”、字母 S 表示“十”,用 12...n 来表示不为零的个位数字 n(<10),换个格式来输出任一个不超过 3 位的正整数。例如 234 应该被输出为 BBSSS1234,因为它有 2 个“百”、3 个“十”、以及个位的 4。 C++ #include <iostream> using namespace std;

  • 1006-10102021-10-29 21:00:57

    第1009,输入的是三个整数,输出小数,需要先将整数转换为小数 import java.util.Scanner; public class demo1 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double b = sc.nextInt();

  • PTA-乙级1006 换个格式输出整数 (15 分)-JAVA2021-10-21 19:03:50

    直接上代码 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //输入测试用例 int num = sc.nextInt(); //用来存放百十个位的数字,用来输出最后的结果

  • 1006_堆排序2021-10-03 14:59:56

    堆排序 (实际上是调整好的一个最小堆) 题解 #include<iostream> using namespace std; int main() { bool adjust = false; //用于控制循环,因为一轮并不一定能够完成最小堆的构建or调整 int m; cin >> m; for (int i = 0; i < m; i++) { int n; cin >> n; int*

  • 1006基于SpringBoot的宿舍管理系统2021-09-25 21:30:52

    基于SpringBoot的宿舍管理系统 系统简介 技术选型:基于SpringBoot+MyBatis的前后端分离项目,使用MySQL作为数据库,前端UI框架使用后LayUI,JavaScrpit;运行简单,界面优美。 数据库设计如下 功能截图如下 系统管理员 宿管员 学生 源码分享 详情咨询作者昵称

  • PAT乙级刷题 1006 换个格式输出整数 (15 分)2021-09-20 19:58:41

    题目: 让我们用字母 B 来表示“百”、字母 S 表示“十”,用 12...n 来表示不为零的个位数字 n(<10),换个格式来输出任一个不超过 3 位的正整数。例如 234 应该被输出为 BBSSS1234,因为它有 2 个“百”、3 个“十”、以及个位的 4。 输入格式: 每个测试输入包含 1 个测试用例

  • 数据结构算法——1006. 线性链表的插入与删除2021-09-11 18:30:59

    题目 思路 只要求写插入和删除代码,熟悉链表的题目 链表的问题主要是出在结尾和头部的添加(这里由于题目说明,头节点是不会插入的),所以只需要考虑 中间插入 尾部插入 头部删除 中间删除 尾部删除(其实尾部和中间是一样的,只不过next指向NULL罢了) 弄清楚各自操作改变哪些量即可 代

  • PAT 1006 换个格式输出整数 (15 分)2021-08-05 22:01:03

    https://github.com/salmon1802/PAT_B import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * @date 2021-8-5 - 00:43 * Created by Salmon */ public class Main { public static void main(String[] args) throw

  • 51Nod 1006 最长公共子序列Lcs2021-07-26 01:33:18

    题目链接:51Nod 1006 最长公共子序列Lcs 题目大意: 题解: 最长公共子序列模板题,设\(dp[i][j]\)为字符串\(A[1...i]\)与字符串\(B[1...j]\)的最长公共子序列长度,则状态转移方程为: \[dp[i][j] = max\{dp[i-1][j-1] + (A[i] == B[j]), dp[i-1][j], dp[i][j-1]\} \]用\(pre\)数组记录上

  • 2021“MINIEYE杯”中国大学生算法设计超级联赛(1)1006 / HDU6955. Xor sum(01Trie/好题)2021-07-21 16:35:15

    Problem Description Given a sequence of integers of length n, find the shortest consecutive subsequence witch XOR sum not less than k. If there are multiple consecutive subsequences of the same length, print the consecutive subsequence with the smallest l

  • PAT乙级1006,用C语言进行编程,换个格式输出整数2021-07-09 09:04:41

    今天的这道题呢就放松一下了,难度也不大,比较简单。 不过为了让整个流程都比较明朗,对于这道题虽然我只花了一丢丢时间就完成了,但是还是得详细讲一讲。 这道题的大致要求是:用字母B表示百位,用字母S表示十位,用123...n来表示不为零的个位数字(n<10),例如234输出得到为BBSSS1234。 审题

  • [1006]python之string模块常量:数字,26个字母,标点符号,空白2021-06-21 22:30:55

    In [8]: import string In [9]: dir(string) In [10]: string.ascii_letters Out[10]: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' In [11]: string.ascii_lowercase Out[11]: 'abcdefghijklmnopqrstuvwxyz' In [12]: string.ascii_upp

  • 1006 Sign In and Sign Out (25 分)2021-06-19 22:33:18

    At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in's and out's, you are supposed to find the ones who have unloc

  • SZTUOJ 1006.多连块拼图2021-06-12 05:32:24

    Description 多连块是指由多个等大正方形边与边连接而成的平面连通图形。 —— 维基百科 给一个大多连块和小多连块,你的任务是判断大多连块是否可以由两个这样的小多连块拼成。小多连块只能平移,不能旋转或者翻转。两个小多连块不得重叠。左下图是一个合法的拼法,但右边两幅图都非

  • PAT乙级:1006 换个格式输出整数 (15 分)2021-05-22 09:30:18

    PAT乙级:1006 换个格式输出整数 (15 分) 微信公众号请搜索:【Codeplus】 作者 CHEN, Yue 单位 浙江大学 代码长度限制 16 KB 时间限制 400 ms 内存限制 64 MB 问题描述:让我们用字母 B 来表示“百”、字母 S 表示“十”,用 12…n 来表示不为零的个位数字 n(<10),换个格式来输出任

  • PAT乙级1006 换个格式输出整数(C语言实现)2021-05-16 19:01:40

    题目: 让我们用字母 B 来表示“百”、字母 S 表示“十”,用 12...n 来表示不为零的个位数字 n(<10),换个格式来输出任一个不超过 3 位的正整数。例如 234 应该被输出为 BBSSS1234,因为它有 2 个“百”、3 个“十”、以及个位的 4。 输入格式: 每个测试输入包含 1 个测试用例,给出正整数

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

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

ICode9版权所有