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
1012.
1012.
数字分类 (20)
给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1=能被5整除的数字中所有偶数的和;A2=将被5除后余1的数字按给出顺序进行交错求和,即计算n1-n2+n3-n4...;A3=被5除后余2的数字的个数;A4=被5除后余3的数字的平均数,精确到小数点后1位;A5=被5除后余4的数字中最大数字。输入格式:每个输入包含1个测试用例。每个测试用例先给出一个不超过1000的正整数N,随后给出
baidu_32157201
·
2016-03-29 22:00
pat
Java文件操作源码大全
文件操作源码大全1.创建文件夹52.创建文件53.删除文件54.删除文件夹65.删除一个文件下夹所有的文件夹76.清空文件夹87.读取文件88.写入文件99.写入随机文件910.读取文件属性911.写入属性
1012
CastileMan
·
2016-03-13 00:00
Java文件操作源码大全
文件操作源码大全1.创建文件夹52.创建文件53.删除文件54.删除文件夹65.删除一个文件下夹所有的文件夹76.清空文件夹87.读取文件88.写入文件99.写入随机文件910.读取文件属性911.写入属性
1012
CastileMan
·
2016-03-13 00:00
[HDOJ]
1012.
u Calculate e
题目中给出了公式,只需要把这个公式实现一下就可以了,用分函数求处阶乘,然后再在主函数中计算。 此题中唯一需要注意的就是格式控制,虽然题目中只给出了n从0~4的输出,但也不能妄下结论,一开始我用setprecision(10)来控制格式输出,但后来提交后发现w
·
2015-11-13 02:55
ca
PAT 1011-1020 题解
1012.
T
·
2015-11-12 22:21
pat
【PAT】
1012.
The Best Rank (25)
题目链接: http://pat.zju.edu.cn/contests/pat-a-practise/1012 题目描述: To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Prog
·
2015-11-12 13:13
rank
1012.
The Best Rank (25)暴力枚举 排序
1012.
·
2015-11-11 18:13
rank
Ural(Timus)
1012.
K-based Numbers. Version 2
DP+高精度 (和1009是一样的题目,不过数字的位数达到了180,所以要用高精度) 同样是记忆化搜索实现,不过加入了高精度,一些细节地方就注意一下。我的代码写的不好,有点长有点乱………… #include <cstdio> #include <cstring> #define LEN 210 //高精度数组的大小 #define
·
2015-11-08 14:03
version
(NSURLErrorDomain error -
1012.
) 问题
(NSURLErrorDomain error -
1012.
)
·
2015-10-31 18:47
domain
浅谈 BigInteger
Version 3
1012.
K-based numbers. Version 2 1153. Supercomputer 1108. Her
·
2015-10-30 10:13
BIgInteger
Java文件操作源码大全
创建文件夹 52.创建文件 53.删除文件 54.删除文件夹 65.删除一个文件下夹所有的文件夹 76.清空文件夹 87.读取文件 88.写入文件 99.写入随机文件 910.读取文件属性 911.写入属性
1012
·
2015-10-27 15:45
java
[PAT (Advanced Level) ]
1012.
The Best Rank 解题文档
1012.TheBestRank(25)时间限制400ms内存限制65536kB代码长度限制16000B判题程序Standard作者CHEN,YueToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathe
u010536377
·
2015-10-17 16:00
1012.
The Best Rank
1012.TheBestRank(25)时间限制400ms内存限制65536kB代码长度限制16000B判题程序Standard作者CHEN,YueToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathe
caicai_zju
·
2015-10-15 16:00
pat(B)
1012.
数字分类
代码:#include #include #include #defineINF1ans5) { ans5=a[i]; } } } ans4=s*1.0/k; if(ans1==0) printf("N"); else printf("%d",ans1); if(cnt==0) printf("N"); else printf("%d",ans2); if(ans3==0) printf("N")
xky1306102chenhong
·
2015-08-29 19:00
pat
1012.
The Best Rank (25)
题目链接:http://www.patest.cn/contests/pat-a-practise/1012题目: 时间限制400ms 内存限制65536kB 代码长度限制16000B 判题程序Standard 作者 CHEN,Yue ToevaluatetheperformanceofourfirstyearCSmajoredstudents,we
Apie_CZX
·
2015-05-04 13:00
pat
sjtu oj 1012 增长率问题
1012.
增长率问题Description有一个数列,它是由自然数组成的,并且严格单调上升。最小的数不小于S,最大的不超过T。
sunemp
·
2015-03-12 22:29
dp
动态规划
sjtu oj 1012 增长率问题
1012.
增长率问题Description有一个数列,它是由自然数组成的,并且严格单调上升。最小的数不小于S,最大的不超过T。
sunemp
·
2015-03-12 22:29
dp
动态规划
sjtu oj 1012 增长率问题
1012.
增长率问题Description有一个数列,它是由自然数组成的,并且严格单调上升。最小的数不小于S,最大的不超过T。
sunemp
·
2015-03-12 22:29
dp
动态规划
1012.
The Best Rank (25)
ToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathematics(CalculusorLinearAlgrbra),andE-English.Atthemeantime,weencouragestud
oFengWuYu1
·
2015-02-25 20:00
C++
pat
1012.
数字分类 (20)
1012.
数字分类(20)时间限制50ms内存限制65536kB代码长度限制8000B判题程序Standard作者CHEN,Yue给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1=能被
ice_camel
·
2014-12-27 14:00
C语言
乙级
浙大PAT
PAT
1012.
The Best Rank
#include #include #include #include #include #include #include #include usingnamespacestd; classStu { public: intid; intG[4];//ACME }; intterm=0; boolcomp(constStu&a,constStu&b) { returna.G[term]>b.
guoliang
·
2014-11-30 21:00
(NSURLErrorDomain error -
1012.
)”的解决方案
开始碰到这个问题,不知所措,以为权限出了问题。然后把svn项目地址的链接打开,却是可以的。翻笔记,找出如下方法:1、command下输入svnlssvn项目地址2、会询问你是否允许这个地址的访问,我们输入“ p ”,然后回车即可。验证是否OK的方法:再次控制台输入svnlsxxxx接下来就可以使用svncheckoutsvn项目地址迁出项目了~
passionboyxie
·
2014-10-24 14:00
PAT
1012.
The Best Rank (25)
http://pat.zju.edu.cn/contests/pat-a-practise/1012ToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathematics(CalculusorLinea
xtzmm1215
·
2014-08-12 22:00
编程题目: PAT
1012.
数字分类 (20)
1012.
数字分类(20)时间限制50ms内存限制32000kB代码长度限制8000B判题程序Standard作者CHEN,Yue给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1=能被
zhangyalin1992
·
2014-07-02 14:00
pat
1012
1012.
The Best Rank
#include #include #include #include usingnamespacestd; constcharp[]={'A','C','M','E'}; structnode{intid,g[4],r[4];}; intmain(){ intn,m;cin>>n>>m; vectorst(n); for(auto&x:st){ cin>>x.id>>x.g[1]>>x.g[2]
u013827143
·
2014-06-22 17:00
PAT-B
1012.
数字分类(python)
1.py中初始数组,a1=a2=a3=a4=a5=[], 这样a1,a2,a3,a4,a5是指向同一个链表的引用。这和C不一样的。2.round(number,significant)可以用来四舍五入小数3.暂未发现built-in中有average函数,用的是float(sum(a4))/len(a4)源码:if__name__=="__main__": #initializethemseper
u014674776
·
2014-05-21 07:00
python
PAT-B
1012.
数字分类 (20)
给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1=能被5整除的数字中所有偶数的和;A2=将被5除后余1的数字按给出顺序进行交错求和,即计算n1-n2+n3-n4...;A3=被5除后余2的数字的个数;A4=被5除后余3的数字的平均数,精确到小数点后1位;A5=被5除后余4的数字中最大数字。输入格式:每个输入包含1个测试用例。每个测试用例先给出一个不超过1000的正整数N,随后给出
oFengWuYu1
·
2014-05-18 10:00
java
pat
PAT A
1012.
The Best Rank (25)
题目ToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathematics(CalculusorLinearAlgrbra),andE-English. Atthemeantime,weencourages
xyzchenzd
·
2014-05-06 16:00
C++
pat
PAT (Advanced)
1012.
The Best Rank (25)
#define_CRT_SECURE_NO_WARNINGS #include #include #include #include #include usingnamespacestd; structStudent { stringid; intc,m,e,a; intrank[4];//a,c,m,e }; vectorstudent; boolcmp_c(constStudent&a,c
hale1007
·
2014-03-02 22:00
【C++】浙大PAT (Basic Level)
1012.
数字分类 (20)
1012.
数字分类(20)时间限制50ms内存限制32000kB代码长度限制8000B判题程序Standard作者CHEN,Yue给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1=能被
artemisrj
·
2014-01-24 20:00
【PAT Advanced Level】
1012.
The Best Rank (25)
注意点:排名顺序如果有并列,则往后延续比如11145而不是11123每次排序后更新每个学生的最好排名情况。#include #include #include #include #include usingnamespacestd; structStudent { public: stringid; intscore[4]; intbestRank; charsubject; Student(
gzxcyy
·
2013-10-31 13:00
浙江大学PAT上机题解析之
1012.
数字分类 (20)
1012.
数字分类(20)时间限制 50ms内存限制 32000kB代码长度限制 8000B判题程序 Standard 作者 CHEN,Yue给定一系列正整数,请按要求对数字进行分类
·
2013-09-01 10:00
ACM
pat
浙江大学
【PAT】
1012.
The Best Rank (25)
题目链接:http://pat.zju.edu.cn/contests/pat-a-practise/1012题目描述:ToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathematics(Calculu
realxuejin
·
2013-08-27 11:00
pat
cc++
天梯题目解答--入门菜鸟
天梯网址很不错的在线编程网站,原来做过一点ACM,这个UI实在是比当时的ACM好太多,我个人比较纠结UI,还是很喜欢这个网站所以~~下面整理一下做过的题,做完一些整理一次,不会太多集中在一篇也不会一篇就一道:)一、入门菜鸟
1012
settingsun1225
·
2013-08-24 20:00
ural
1012.
K-based Numbers. Version 2
题意:问K进制的N位数中没有连续的0的数的个数。 2≤ K ≤10; N ≥2; N + K ≤180.分析:和1009方法一样,但要用高精度计算加,乘。Code:#include #include #include #include #include #include #include #include #include #include #defineLLlonglong #definepbp
HRHACMER
·
2013-08-06 10:00
1012.
The Best Rank (25)-PAT
1012.TheBestRank(25)时间限制400ms内存限制32000kB代码长度限制16000B判题程序Standard作者CHEN,YueToevaluatetheperformanceofourfirstyearCSmajoredstudents,weconsidertheirgradesofthreecoursesonly:C-CProgrammingLanguage,M-Mathe
zoushidexing
·
2013-07-15 11:00
1012.
The Best Rank (25)
考察结构体排序#include #include #include #include #include #include #include #include usingnamespacestd; intn;//student intm;//query typedefstructNode { stringname; intgrade[4]; intbestRank; intbestGrade; }N
sunbaigui
·
2013-03-10 20:00
pat
ZJU
[sicily online]
1012.
Stacking Cylinders
ConstraintsTimeLimit:1secs,MemoryLimit:32MBDescriptionCylinders(e.g.oildrums)(ofradius1foot)arestackedinarectangularbin.Eachcylinderonanupperrowrestsontwocylindersintherowbelow.Thecylindersinthebottom
qiuchenl
·
2012-12-05 16:00
1012.
在线视频―shell脚本系列讲座(二)三剑客―文本处理
shell脚本系列讲座有以下主题 (一)shell脚本与应用示例(二)三剑客—文本处理(三)千机变—脚本变量(四)向左向右—条件选择(五)望山跑死马—循环(六)脚本函数与任务调度(七)脚本分析与应用技巧 以下是(二)三剑客—文本处理的在线视频,附件是此视频的电子课件: shell脚本系列视频访问链接:(一)shell脚本与应用示例(二)三剑客—文本处理(三)千机变—脚本变量(四)向左向右—条件选
峻哥
·
2012-04-21 12:06
shell脚本
脚本应用
脚本示例
shell示例
URAL
1012.
K-based Numbers. Version 2
和1009一样,只不过需要用大数~~!! #include#include#include#include#include#include#include#includeusingnamespacestd;constintMAX=1010;intdp[20][200][MAX];intlen[20][200];intmain(){intn,k;memset(dp,0,sizeof(dp));for
zxy_snow
·
2011-05-01 11:00
Stacking Cylinders &
1012.
Stacking Cylinders
TAG简单几何计算 这两道题题目是一样的,不过输出格式有点不同,而且1206的Sampleinput故意设下陷阱:让人误以为输入数据有序。我之前没有排序,wa了。(╬▔ω▔) 圆形的位置不好处理,我们可以考虑圆心,变成三角形来分析。题目说明只有相邻层会接触。所以问题变得比较简单,而且我们可以逐层计算上去,最终得到答案。连接相邻的2个圆心和对应上方的圆心,显然AC=AB=2,再算θ1和θ2两个角便能
Dinosoft
·
2010-08-28 10:00
c
input
Stacking Cylinders &
1012.
Stacking Cylinders
TAG简单几何计算这两道题题目是一样的,不过输出格式有点不同,而且1206的Sampleinput故意设下陷阱:让人误以为输入数据有序。我之前没有排序,wa了。(╬▔ω▔)圆形的位置不好处理,我们可以考虑圆心,变成三角形来分析。题目说明只有相邻层会接触。所以问题变得比较简单,而且我们可以逐层计算上去,最终得到答案。连接相邻的2个圆心和对应上方的圆心,显然AC=AB=2,再算θ1和θ2两个角便能得出
yzd
·
2010-08-28 10:00
stack
Stacking Cylinders &
1012.
Stacking Cylinders
TAG简单几何计算这两道题题目是一样的,不过输出格式有点不同,而且1206的Sampleinput故意设下陷阱:让人误以为输入数据有序。我之前没有排序,wa了。(╬▔ω▔)圆形的位置不好处理,我们可以考虑圆心,变成三角形来分析。题目说明只有相邻层会接触。所以问题变得比较简单,而且我们可以逐层计算上去,最终得到答案。连接相邻的2个圆心和对应上方的圆心,显然AC=AB=2,再算θ1和θ2两个角便能得出
dinosoft
·
2010-08-28 10:00
ACM题解
上一页
1
2
下一页
按字母分类:
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
其他