- 博客(5)
- 收藏
- 关注
原创 PAT甲级1084
On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen. Now given a string that you are supposed to...
2018-07-17 23:46:26
230
原创 PAT甲级1081
Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positive integ...
2018-07-14 00:18:32
312
原创 PAT甲级1054
The Dominant ColorBehind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional ar...
2018-05-26 00:31:47
220
原创 PAT甲级1003
题目翻译:作为一个城市紧急援救队的指挥者,你得到了一个国家的特殊地图。地图上分散着几座城市,城市间用道路连接着。每个城市援救队的数量以及两座城市之间每条道路的长度已经在地图上标出。当某些城市发生了突发事件,需要你的帮助时,你的工作是带领你的队伍尽快的赶到事发现场,与此同时,召集尽可能多的在路上的队伍。 输入每个输入文件包含一个测试实例。每个实例的第一行有四个正整数:N(<= 500)是城市的...
2018-02-19 01:01:02
474
原创 PAT甲级1002
PAT甲级1002是一个多项式相加的问题。本人使用map数据结构来保存多项式其中一项,一个键值对中,键对应指数,值对应系数。多次提交一直报错,后发现主要是输出精度的问题。系数必须保留到小数点后一位。以下为原题:InputEach input file contains one test case. Each case occupies 2 lines, and each line contains...
2018-02-14 16:01:11
398
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人