E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
1041
1041
考试座位号 (15 分)
题目:每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(≤1000),随后N行,每行给出一个考生的信息
weixin_30537391
·
2020-08-15 16:54
c/c++
PAT乙级—
1041
. 考试座位号(15)-native
每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(usingnamespacestd;constint
飞翔的荷兰人灬
·
2020-08-15 16:00
PAT乙级初步题解
PAT
1041
. 考试座位号(15)
题目概述:每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(typedefstructStu{char
Stella-Chen
·
2020-08-15 15:01
PAT
PAT (Basic Level) Practice (中文)
1041
考试座位号 (15 分)(Java实现)
题目描述:每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(≤1000),随后N行,每行给出一个考生的
吃口雪花
·
2020-08-15 15:52
PAT
数据结构与算法
算法题
Ĵava
Java - PAT -
1041
. 考试座位号(15)
每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(#includeusingnamespacestd;
i逆天耗子丶
·
2020-08-15 15:41
PAT
(Basic
Level)
PAT 乙级
1041
考试座位号 (15 分)
题目:https://pintia.cn/problem-sets/994805260223102976/problems/994805281567916032经验总结:定义结构体structstu,试机座位可代表下标。记:题目中所给的某些数据可当做数组的下标使用,记住这一点,很多题可以轻松解决。C++代码:#include#includeusingnamespacestd;structstu{s
资深小透明
·
2020-08-15 14:26
PAT
乙级
1041
. 考试座位号(15)-PAT乙级真题
每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式输入第一行给出一个正整数N(usingnamespacestd;intmain()
柳婼
·
2020-08-15 14:04
PAT
分块入门1~9题解
分块入门1:LOJ6277.题目大意:给定一个长度为nnn的序列以及nnn个操作,操作设计区间加法,单点查值.1≤n≤5∗
1041
\leqn\leq5*10^41≤n≤5∗104.分块,每个块维护一个tagtagtag
hezlik
·
2020-08-15 14:30
1041
. 考试座位号(15)
每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(#includestructrec{charnum[
L_Aster
·
2020-08-15 14:20
PAT(乙级)
B
1041
(15)
烫知识:本题中16位数字可以用longlong接收#include#includeusingnamespacestd;constintmaxn=1010;structnode{longlongname;intk;}p[maxn];intmain(){intn,m,k1,k2;cin>>n;longlongname;for(inti=0;i>m;for(inti=0;i
coder_Kim
·
2020-08-15 13:43
PAT BASIC LEVEL
1041
. 考试座位号(15)
1041
.考试座位号(15)每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。
此账号已弃用
·
2020-08-15 13:52
PAT
PAT乙级
1041
考试座位号 (15分)
这道题查错半天才找到错在哪:longlong类型数据在scanf、printf中对应的格式符是“lld”。#pragmawarning(disable:4996)#includeusingnamespacestd;structstudent{longlongid;intseat;inttest;}Student[1010];intmain(){intn;scanf("%d",&n);for(int
Douglas_LT
·
2020-08-15 13:01
PAT
PAT乙级
1041
. 考试座位号(15)
题目:每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(usingnamespacestd;intma
ZWANG987
·
2020-08-15 13:23
PAT乙级
PAT (Basic Level) Practise (中文)
1041
. 考试座位号(15)
考试座位号(15)时间限制400ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于
孤风少年
·
2020-08-15 12:10
PAT
PAT
1041
考试座位号(C语言实现,利用hash表实现快速查找)
题目链接:
1041
考试座位号思路:创建结构体,存放考生号与座位号。建立数组,在输入信息时,把机试号作为数组的下标index值。在打印时直接可打印,不用进行for循环查找。
B·o·T
·
2020-08-15 07:24
C语言
1041
. 考试座位号(15)
每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(usingnamespacestd;structst
openn7
·
2020-08-14 18:01
PAT乙级真题及训练集
mysql中使用FIND_IN_SET查询在逗号隔开的字符串中符合多个ID的数据
已知:A表selectA.idfromAid104107108109110111112113114115118165173B表selectB.rolefromBrole49,51,33,72,88,
1041
,74,33,51,43,72,68,70,88,56,57,65,10776,88,1111234560,80,75,108109108109
xujunabc999
·
2020-08-13 23:33
MySQL
PAT乙级|C语言|
1041
考试座位号 (15分)
题目每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式:输入第一行给出一个正整数N(≤1000),随后N行,每行给出一个考生的信息:
烫烫烫糖糖糖
·
2020-08-13 22:16
PAT乙级一天一题/C语言
c语言
P
1041
传染病控制
题目先来理解题意,我有一个同学,就是题意理解错误,导致他十分烦躁。题意人们的关系是一个树形结构,每个节点代表一个人。切断传播途径的方法,实际上就是在每一层中选择一条边把他切断,那么这条边下面的节点就都是安全的了。知道了要做什么之后,接下来我们考虑怎么来做。贪心下意识的就会想到每次砍最大的那条子树,但这种方法是错误的。所以只好老老实实暴搜。那暴搜也得有个方法。思路如下现在有一颗树把第一层的所有节点存
weixin_42404190
·
2020-08-13 22:32
题解
洛谷P
1041
传染病控制
解:搜索......我们可以每次选择分支少的搜索,或者说,贪心的搜索当前更优的决策。每一层把能剪的点搞出来,按照度数/SIZ排序,然后依次搜索。加个最优化剪枝就完事了。1#include23constintN=310,INF=0x3f3f3f3f;45structEdge{6intnex,v;7}edge[Nin[b];15returnsiz[a]>siz[b];16}1718inlinevoid
weixin_33885676
·
2020-08-13 21:57
zzuli OJ
1041
: 数列求和2
Description输入一个整数n,输出数列1-1/3+1/5-……前n项的和。Input输入只有一个整数n。Output结果保留2为小数,单独占一行。SampleInput3SampleOutput0.87HINTSource#includeintmain(){inti,n;doublesum,deno,flag;scanf("%d",&n);sum=0.0;deno=1.0;//初始值为第一
强强强子
·
2020-08-13 18:37
ZZULI_OJ
初级ACM题集
【NOIP2003 提高组】传染病控制
题目https://www.luogu.org/problemnew/show/P
1041
思路题目大意是:把一棵树按深度分层,每一层断掉一条边,是剩下的节点数最小。
CE自动机
·
2020-08-13 10:41
题解
dfs
PAT-Basic刷题
1041
-1050
1041
考试座位号#include#includeusingnamespacestd;intmain(){stringstu[1005][2];strings1,s2;intm,n,t;cin>>n;for
fancyZT
·
2020-08-11 11:53
C++
CCF NOI
1041
志愿者选拔
问题链接:CCFNOI
1041
志愿者选拔。时间限制:1000ms空间限制:262144KB题目描述世博会志愿者的选拔工作正在A市如火如荼的进行。
weixin_33704234
·
2020-08-10 23:44
poj
1041
John's trip(欧拉回路+输出路径)
->题目请戳这里#include#include#includeusingnamespacestd;constintN=20005;structnode{intfrom,to,id,next;boolvis;}edge[N];intflag[N];structnd{inta,b,c;}lcm[N];intnum;intx,y;intset[50];intdegree[50];intstart,in
ophunter
·
2020-08-10 18:34
#
欧拉回路
#
图论
Fleury算法求欧拉路径
Fleury算法求欧拉路径列出一些有关欧拉的题混合图欧拉回路poj1637,zju1992,hdu34721HDU3018AntTrip2POJ
1041
John'strip3POJ1386PlayonWords4POJ2230WatchCow5POJ2513ColoredSticks6POJ2337Catenyms7POJ1392OuroborosSnake8HDU2894DeBruijin
请_坚持思考
·
2020-08-10 17:12
欧拉回路
acm题解
.net/C# 实现汉字到拼音转换
在进行语料库的制作过程中,一项繁琐的工作便是将已有的汉字手动转换为拼音,格式如下:Sentencem39C
1041
:制约俄国、巩固西方在东欧的立足点,Sentencespell:Zhi4yue1e2guo2gong3gu4xi1fang1zai4dong1ou1de0li4zu2dian3Sentencem39C1042
djyangmaowei
·
2020-08-10 16:16
编程
工作
byte
.net
语言
bi
c
bzoj
1041
-[HAOI2008]圆上的整点
根本不会做,看了某国外大神数论详解豁然贯通,还知道了pi=4*(1-1/3+1/5-1/7...)是怎么推的。链接:https://www.bilibili.com/video/av12131743/简单来说就是将二维平面看成是复数集合,那么一个圆上的整点(a,bi)必然满足(a,bi)*(a,-bi)=r*r(这样一对复数也称共轭复数,蒟蒻理解就是关于x轴对称一对点...),而共轭复数是可以分解
caoyang1123
·
2020-08-10 06:09
笔记
hihocoder
1041
时间限制:1000ms单点时限:1000ms内存限制:256MB描述小Hi和小Ho准备国庆期间去A国旅游。A国的城际交通比较有特色:它共有n座城市(编号1-n);城市之间恰好有n-1条公路相连,形成一个树形公路网。小Hi计划从A国首都(1号城市)出发,自驾遍历所有城市,并且经过每一条公路恰好两次——来回各一次——这样公路两旁的景色都不会错过。令小Hi苦恼的是他的小伙伴小Ho希望能以某种特定的顺序游
t_xliang
·
2020-08-09 05:56
树
Error: connect ECONNREFUSED 127.0.0.1:8080
_exceptionWithHostPort(util.js:
1041
:20)atTCPConnectWrap.afterConnect[asoncomplete](net.js:1086:14)系统带发
weixin_30609287
·
2020-08-08 23:35
bzoj
1041
圆上的整点(一种新奇的思路)
用了一种新奇的方法重温了这道题目。学弟发来的定理很妙呦orz:有上述定理,则问题转化为求r^2的%4余1因子数和%4余3因子数。用约数个数定理,去掉偶因子后可以求出两者之和因此,求其中一种即可。从%4余1的因子数下手吧易知%4余1的因子定是由任意多个%4余1的质数和偶数个%4余3的质数相乘得来的任意多个%4余1的质数实际上就是最大的%4余1的质数的因子数,上约数个数定理取偶数个%4余3的质数怎么求
lethalboy
·
2020-08-08 19:47
数论
NOIP2018提高组题解
luogu5019.题目大意:给定一个长度为nnn的数组A[i]A[i]A[i],要求每次可以将一段连续正数区间减111,要求用最少的操作次数将A[i]A[i]A[i]全部变为000.1≤n≤105,1≤A[i]≤
1041
hezlik
·
2020-08-08 01:17
【SDOI2015】BZOJ3994 约数个数和题解(Mobius反演+除法分块)
∣n1,给定TTT组询问n,mn,mn,m,每次询问∑i=1n∑j=1md(ij)\sum_{i=1}^{n}\sum_{j=1}^{m}d(ij)∑i=1n∑j=1md(ij).1≤n,m,T≤5∗
1041
hezlik
·
2020-08-07 10:25
41岁,她依旧美的很高级
§è°è¤41°§§è§ééé6èè°±Melody¤è¤·èéèééé·±¤¨èéè°¤8訷è·èéè±é¨è¤¤§è°¤è¨Melodyéè10è·èé¨éè...éé騷¤¨èè¤...è
1041
时尚临风
·
2020-08-07 00:00
P
1041
传染病控制[搜索][树]
P
1041
传染病控制远古NOIP题放到现在真的容易得一批给你一棵树,以1为根。1点有病,并且有边就会传染,一轮传染可以断边一次,求最好的断边方案下的最小感染人数。
dianshu0741
·
2020-08-05 18:30
数据结构与算法
1041
考试座位号 (15分)
题目每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位。正常情况下,考生在入场时先得到试机座位号码,入座进入试机状态后,系统会显示该考生的考试座位号码,考试时考生需要换到考试座位就座。但有些考生迟到了,试机已经结束,他们只能拿着领到的试机座位号码求助于你,从后台查出他们的考试座位号码。输入格式输入第一行给出一个正整数N(≤1000),随后N行,每行给出一个考生的信息:准
小马小马最可爱
·
2020-08-05 15:00
hihocoder #
1041
: 国庆出游(DFS bitset保存子树集合用于指导DFS遍历过程)
题目链接:点击打开链接题意描述:小Hi和小Ho准备国庆期间去A国旅游。A国的城际交通比较有特色:它共有n座城市(编号1-n);城市之间恰好有n-1条公路相连,形成一个树形公路网。小Hi计划从A国首都(1号城市)出发,自驾遍历所有城市,并且经过每一条公路恰好两次——来回各一次——这样公路两旁的景色都不会错过。令小Hi苦恼的是他的小伙伴小Ho希望能以某种特定的顺序游历其中m个城市。例如按3-2-5的顺
Think_Idea
·
2020-08-04 15:20
搜索
PAT (Basic Level) Practise (中文)
1041
. 考试座位号(15) C语言
1041
.考试座位号(15)时间限制400ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue每个PAT考生在参加考试时都会被分配两个座位号,一个是试机座位,一个是考试座位
Pandoraemon
·
2020-08-02 17:22
PAT
(Basic
Level)
Practise
C语言
【BZOJ
1041
】圆上的整点(数论)
题面BZOJ洛谷题解好神仙的题目啊。安利一个视频,大概是第77到1919分钟的样子因为要质因数分解,所以复习了一下Pollard_rhoPollard_rho#include#include#include#include#include#include#includeusingnamespacestd;#definelllonglongintn,ans=1;intfpow(inta,intb,i
小蒟蒻yyb
·
2020-08-01 14:08
BZOJ
各省省选
1041
: [HAOI2008]圆上的整点
id=
1041
题目大意:求一个给定的圆(x^2+y^2=r^2),在圆周上有多少个点的坐标是整数。
何世全
·
2020-08-01 10:23
bzoj
数论
BZOJ系列
1041
《[HAOI2008]圆上的整点》题解
Description求一个给定的圆(x^2+y^2=r^2),在圆周上有多少个点的坐标是整数。InputrOutput整点个数SampleInput4SampleOutput4HINTn#include#include#include#includeusingnamespacestd;typedeflonglongll;llR,ans=0;llgcd(lla,llb){returnb==0?a:
Dante__Alighieri
·
2020-08-01 10:48
BZOJ
BZOJ
1041
[HAOI2008] 圆上的整点 题解与分析
[HAOI2008]圆上的整点TimeLimit:10SecMemoryLimit:162MBDescription平面上有一个圆,圆心坐标为(0,0),半径为n.问圆周上有多少个整点.整点的定义即x,y坐标均为整数的点.input输入文件只有一个正整数n.Output输出文件为一个正整数,即圆周上有多少个整点.SampleInput4SampleOutput4HINT20%的测试数据,n,算出对
csyzcyj
·
2020-08-01 09:57
题库
BZOJ(大视野测评)
讲课流程
尚俊平,焦点网络中级,坚持分享
1041
天,2019年3月10日星期7今天在刘老师的带领下,我们学习了怎么去讲课?刘老师的主线是:主题——题目——内容——讲课——收尾。
953841688智心慧语
·
2020-08-01 05:15
【郑轻oj】 -
1041
: 数列求和2(正负交替出现)
1041
:数列求和2TimeLimit:1SecMemoryLimit:128MBSubmit:7034Solved:5453SubmitStatusWebBoardDescription输入一个整数n
Bear1997
·
2020-07-31 13:09
学习之路
复活吧,我的僵尸路由器们,wrt
1041
n v2再战江湖,路由器硬改硬刷手把手超详细教学
WRT
1041
nv2这款是我最难忘怀了Chapter1召唤经典这是读大学期间自己攒的路由之一,原价199¥,千兆那会在当年在宿舍还是比较烧的,承担了邻里10几个小朋友的优质WIFI上网重担,不是最贵最好
beteljoss
·
2020-07-30 12:29
运维
路由器
【codevs
1041
】【vijos P1119】[NOIP提高组2001] Car的旅行路线(最短路)
P1119Car的旅行路线Accepted标签:NOIP提高组2001[显示标签]描述又到暑假了,住在城市A的Car想和朋友一起去城市B旅游。她知道每个城市都有四个飞机场,分别位于一个矩形的四个顶点上,同一个城市中两个机场之间有一条笔直的高速铁路,第I个城市中高速铁路了的单位里程价格为Ti,任意两个不同城市的机场之间均有航线,所有航线单位里程的价格均为t。那么Car应如何安排到城市B的路线才能尽可
reverie_mjp
·
2020-07-30 00:51
noip
图
最短路
图
最短路
hdu-
1041
(大数模板)
pid=
1041
题意:电脑中存在数字1,进行扩展操作,如果遇到1变为“01”,如果遇到0,变为“10”,经过一次变换称为“01”,两次“1001”,三次“01101001”,求经过n次变换,得到的01序列中有多少对相邻的
weixin_30900589
·
2020-07-28 17:20
Qt 应用程序固定窗口大小
使用代码setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);setMinimumSize(QSize(
1041
,801));//QSizeparameterscomef
Arthur3827
·
2020-07-28 14:16
Qt
Qt
Leetcode1157
每次问在区间[l,r][l,r][l,r]内出现最多次数的数,次数是否≥threshold\gethreshold≥threshold的数组长度≤2∗104\le2*10^4≤2∗104数组元素大小1≤x≤
1041
dezhonger
·
2020-07-27 21:05
分块
leetcode
周武王简介
周武王(公元前1085年―公元前
1041
年),又名姬发,周文王姬昌的嫡次子,岐周(今陕西岐山)人。西周王朝的开国君主,在位15年。姬发继承父亲遗志,约于前1044年消灭商朝,建立了西周王朝。
刘茈琳
·
2020-07-27 21:32
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他