
ZOJ
KLFTESPACE
这个作者很懒,什么都没留下…
展开
-
Financial Management POJ1004, ZOJ 1048, UVA2362
点击打开链接 POJ1004Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfol...原创 2018-04-24 10:39:20 · 236 阅读 · 0 评论 -
Judge Internal Error (map的value值排序)
中途用到了vector。 #include<iostream>#include<map>#include <algorithm>#include <vector>int cmp(const std::pair<int, int>& x, const std::pair<int, int>& y原创 2019-02-18 00:59:49 · 233 阅读 · 0 评论 -
Palindrom Numbers ZOJ 1078
//本来想练练itoa,,结果oj不支持,,,然后就自己写了个itoa1的函数,然后引用那儿遇到了问题,需要写成char (&a)[15] 必须&与数组名a用括号括起来,应该只能写成这种样子。 然后,数组变量不引用也可以通过形参修改实参值。通过形参 可在子函数中改变形参所指向的数组中的内容,而实参对应的数组中的内容会随之改变。因为这是通过地址对地址中的内容进行更改。#inc...原创 2019-02-21 17:46:18 · 238 阅读 · 0 评论 -
The Circumference of the Circle POJ 2242 ZOJ 1090
To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't? You are given the cartesian coordinates of three non-collinear point...原创 2018-09-29 22:49:05 · 274 阅读 · 0 评论 -
A Contesting Decision POJ 1581 ZOJ 1764 UVA 2832
Judging a programming contest is hard work, with demanding contestants, tedious decisions,and monotonous work. Not to mention the nutritional problems of spending 12 hours with only donuts, pizza, and...原创 2018-09-29 22:49:15 · 365 阅读 · 0 评论 -
Quicksum POJ 3094 ZOJ 2812 UVA 3594
A checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also change, so checksums are often used for detecting ...原创 2018-09-28 20:25:59 · 283 阅读 · 0 评论 -
Specialized Four-Digit Numbers POJ 2196 ZOJ 2405 UVA 3199
Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation and also...原创 2018-09-28 20:26:12 · 221 阅读 · 0 评论 -
Symmetric Order POJ - 2013 ZOJ 2172
In your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have just finished writing a program whose output is a list of names in nondescending order by length (so that e...原创 2018-10-11 08:22:07 · 233 阅读 · 0 评论 -
Gold Coins POJ - 2000 ZOJ2345 UVA 3045
The king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two days (the second and third days of service), the knight receiv...原创 2018-10-01 10:47:31 · 280 阅读 · 0 评论 -
Self Numbers POJ - 1316 ZOJ 1180 UVA640
In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus the sum of the digits of n. (The d stands for dig...原创 2018-10-01 10:37:50 · 235 阅读 · 0 评论 -
Speed Limit POJ - 2017 ZOJ2229
Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill has a working stopwatch, so they can record their sp...原创 2018-10-01 10:19:18 · 202 阅读 · 0 评论 -
I Think I Need a Houseboat POJ - 1005, ZOJ 1049, UVA 2363
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square ...原创 2018-05-09 22:12:23 · 308 阅读 · 0 评论 -
Doubles POJ 1552, ZOJ 1760, UVA 2787.
点击打开链接As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and asked to determine how many items in each list are ...原创 2018-04-24 11:01:52 · 509 阅读 · 0 评论 -
Treasure Map ZOJ - 3209
参考https://blog.youkuaiyun.com/qq_35479641/article/details/51887172该题的DLX模板#include <iostream>#include <cstdio>using namespace std;const int maxnode=100010;//最大节点数const int maxm=1010;...原创 2019-08-18 20:04:50 · 233 阅读 · 0 评论