HDOJ
tomjobs
别慌,慌也没用
展开
-
HD2080
算夹角,水题一道。。。#include <iostream>#include <cstdio>#include <cmath>using namespace std;const double pi=3.1415926;int main(int argc, char *argv[]) { int n; scanf("%d",&n); ...原创 2018-12-01 19:20:46 · 279 阅读 · 0 评论 -
HD4018 URL
Parsing URLTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 2614 Accepted Submission(s): 1241Problem DescriptionIn computing, a Uniform Re...原创 2018-12-01 19:53:37 · 209 阅读 · 0 评论 -
H - Basic Data Structure HDU - 5929(有技巧的模拟)
Mr. Frog learned a basic data structure recently, which is called stack.There are some basic operations of stack:∙ PUSH x: put x on the top of the stack, x must be 0 or 1.∙ POP: throw the element wh...原创 2019-08-09 00:26:06 · 208 阅读 · 0 评论 -
不要62HDU2089(数位dp)
不要62Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 70716 Accepted Submission(s): 28568Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交...原创 2019-08-19 16:52:22 · 175 阅读 · 0 评论 -
编辑器Editor HDU - 4699(栈,模拟)
你将要实现一个功能强大的整数序列编辑器。在开始时,序列是空的。编辑器共有五种指令,如下:1、“I x”,在光标处插入数值x。2、“D”,将光标前面的第一个元素删除,如果前面没有元素,则忽略此操作。3、“L”,将光标向左移动,跳过一个元素,如果左边没有元素,则忽略此操作。4、“R”,将光标向右移动,跳过一个元素,如果右边没有元素,则忽略次操作。5、“Q k”,假设此刻光标之前的序列为...原创 2019-08-19 20:52:05 · 414 阅读 · 0 评论 -
Senior Pan HDU - 6166(多源dijkstra,二进制优化)
Senior Pan fails in his discrete math exam again. So he asks Master ZKC to give him graph theory problems everyday.The task is simple : ZKC will give Pan a directed graph every time, and selects some...原创 2019-09-04 20:39:50 · 265 阅读 · 0 评论 -
G - Tunnel Warfare HDU - 1540(线段树区间合并,最长连续01)
During the War of Resistance Against Japan, tunnel warfare was carried out extensively in the vast areas of north China Plain. Generally speaking, villages connected by tunnels lay in a line. Except t...原创 2019-09-23 14:59:09 · 232 阅读 · 0 评论