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
hdu1008
HDU1008
//importjava.text.DecimalFormat;importjava.math.BigInteger;importjava.text.DecimalFormat;importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);whil
yue7148
·
2020-09-11 06:31
hdu1008
//实在太水了。。。#include#includeusingnamespacestd;intmain(){intN;intCurrFloor;intDesFloor;inttime;while(cin>>N,N!=0){CurrFloor=0;time=0;intcha;for(inti=1;i>DesFloor;cha=DesFloor-CurrFloor;if(cha<0){time+=ab
Fenice
·
2020-09-11 00:40
ACM-ICPC
水题
hdu1008
Elevator
水题题意:输入N组数据,表示在哪层停下,往上走一层6秒,往下走一层4表,每层停留5秒,问在一组数据下,电梯的总时间#include#includeusingnamespacestd;inta[111];intmain(){//freopen("in.txt","r",stdin);intN;while(cin>>N&&N){intsum=0;for(inti=0;i>a[i];if(a[i]>a[
VNOpU2015
·
2020-09-10 22:41
hdu
水题
hdu 4252单调栈
/* *
hdu1008
/win.cpp * Created on: 2012-7-24 * Author : ben */ #include <cstdio> #
·
2015-11-11 15:01
HDU
【ACM】
HDU1008
Elevator 新手题前后不同的代码版本
【前言】 很久没有纯粹的写写小代码,偶然想起要回炉再来,就去HDU随便选了个最基础的题,也不记得曾经AC过;最后吃惊的发现,思路完全不一样了,代码风格啥的也有不小的变化。希望是成长了一点点吧。后面定期去做做题、保持青春的活力! 1、青年回炉 Problem : 1008 ( Elevator ) Run ID Submit T
·
2015-11-09 11:53
ACM
HDU1008
Elevator
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1008 #include <iostream> using namespace std; int main(int argc, char *argv[]) { int n,curLev,desLev,sumTime,tmp; while(cin>&
·
2015-10-23 09:38
HDU
HDU1008
Elevator
ProblemDescription Thehighestbuildinginourcityhasonlyoneelevator.ArequestlistismadeupwithNpositivenumbers.Thenumbersdenoteatwhichfloorstheelevatorwillstop,inspecifiedorder.Itcosts6secondstomov
lishuzhai
·
2015-03-09 22:00
hdu1008
Elevator
ElevatorTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):39688 AcceptedSubmission(s):21712ProblemDescriptionThehighestbuildinginourcityhasonlyoneelevato
wuli2496
·
2014-03-20 23:00
HDU1008
#include using namespace std; int main() { int f[100]; int t; int i; while(cin>>i) { if(i==0)break; t=0; cin
Aaron_zhang
·
2012-02-13 17:26
职场
ACM
HDU
休闲
HDU1008
#include using namespace std; int main() { int f[100]; int t; int i; while(cin>>i) { if(i==0)break; t=0; cin>>f[0]; t+=f[0]*6+5; for(in
Aaron_zhang
·
2012-02-13 17:26
职场
休闲
hdu
hdu1008
***直播入口***HDOJ将于10月16日对上海现场赛进行图文直播,欢迎围观~ElevatorTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):18105 AcceptedSubmission(s):9665ProblemDescriptionTheh
fangzhiyang
·
2011-10-16 19:00
HDU1008
Elevator
http://acm.hdu.edu.cn/showproblem.php?pid=1008 题目大意:就是说现在有个升降机,上升一层就要花6秒时间,到了目标楼层后会停留5秒时间,下降一层要花4秒时间,你一开始现在在0层,OJ提供你楼层信息,你计算出整个过程所花费的时间。 解题思路:模拟题,简单题。 #include#defineMax2001#includeintfloor[Max];intm
q3498233
·
2009-09-02 12:00
上一页
1
下一页
按字母分类:
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
其他