ICode9

精准搜索请尝试: 精确搜索
  • POJ 2586 Y2K Accounting Bug2022-03-01 19:32:52

    题面 Accounting for Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital data for preparing annual report for MS Inc. All what they remember is that MS Inc. posted a surplus or a deficit each month of 1999 and each month when MS Inc.

  • POJ-2586 Y2K Accounting Bug(贪心)2021-08-11 20:34:59

    题目传送门 题意   一家公司,如果盈利,则金额为\(s\),如果亏损,则金额为\(d\),该公司每连续五个月公布一次总财报,已知公布的八次财报全为亏损,问是否盈利,如果盈利则输出最多能盈利的金额,否则输出\(Deficit\)。 思路   这题主要的困难在于理解题目的题意,连续五个月说明是在\(1、234

  • HDU 2586 How far away ?2021-06-05 10:07:01

    Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 18652    Accepted Submission(s): 7268 Problem Description There are n houses in the village and some bidirectional roads connecting them. Every

  • 「APIO2018」「LOJ #2586」选圆圈2020-08-19 12:32:03

    Description 给定平面上的 \(n\) 个圆,用三个参数 \((x, y, R)\) 表示圆心坐标和半径。 每次选取最大的一个尚未被删除的圆删除,并同时删除所有与其相切或相交的圆。 最后输出每个圆分别是被那个圆所删除的。 Hint \(1\le n\le 3\times 10^5\) \(0\le |x|, |y|, R \le 10^9\) Solu

  • HDU - 2586 How far away ?2020-07-30 09:31:28

    There are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this "How far is it if I want to go from house A to house B"? Usually it hard to answer. But luckily int this village the ans

  • HDU 2586 How far away ?(LCA裸题)2019-07-23 11:51:28

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2586 #include<bits/stdc++.h>#define lson rt << 1, l, m#define rson rt << 1 | 1, m + 1, rusing namespace std;typedef long long ll;static const ll inf = (1 << 32);static const int INF

  • HDU 2586 How far way?2019-04-26 23:40:01

      传送门 继续水板子题... #include <bits/stdc++.h>using namespace std;inline int read() { int x = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch &

  • hdu - 2586 (LCT板子题)2019-03-22 20:40:28

      传送门   (这次的英文题面要比上一个容易看多了) (英语蒟蒻的卑微)   又是一个很裸的LCT题 (显然,这次不太容易打暴力咧) (但听说还是有大佬用dfs直接a掉了) 正好 趁这个机会复习一下LCT 这里用的是倍增lct的思想(一不小心是会写tle的吧) (也有可能是因为我太弱了才t掉的) 我才不会说我有一

  • POJ 2586 Y2K Accounting Bug2019-02-16 14:39:12

                                            Y2K Accounting Bug Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8282   Accepted: 4106 Description Accounting for Computer Machinists (ACM) has suffe

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

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

ICode9版权所有