![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
Jerry Lee の blog
never never never give up.
展开
-
PAT 1023
PAT 1023输入1234567899输出Yes2469135798#include <cstdio>#include <iostream>#include <cstdlib>#include <algorithm>#include <vector>#include <cmath>#include <string>#include <cstring>using namespac原创 2017-11-24 14:54:55 · 206 阅读 · 0 评论 -
PAT1023
1023. Have Fun with Numbers (20)时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueNotice that the number 123456789 is a 9-digit number consisting exactly the numbers from...原创 2018-04-21 09:17:54 · 378 阅读 · 0 评论 -
PAT A1041
1041. Be Unique (20)时间限制 100 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueBeing unique is so important to people on Mars that even their lottery is designed in a unique way. ...原创 2018-04-25 08:18:34 · 701 阅读 · 0 评论 -
PAT A1035
PAT A1035Password (20) 时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, YueTo prepare for PAT, the judge sometimes has to generate random passwords for the users. The pr...原创 2018-04-24 09:07:51 · 258 阅读 · 0 评论 -
PAT A1046. Shortest Distance (20)
PAT A1046. Shortest Distance (20)The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Sp...原创 2018-05-01 13:22:57 · 164 阅读 · 0 评论 -
PAT A1031
PAT A1031Given any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, “helloworld” can be printed as:h de ll rlowoThat is, the charact...原创 2018-04-24 08:23:09 · 245 阅读 · 0 评论 -
PAT 甲级1027
PAT 甲级1027一开始看到题意竟然想到的是直接写模板,我真是太笨了。陷入模板的圈里了。那么就给自己定一个什么时候需要模板,什么时候直接算把:1.当输入的数的位数不定,或者输出的位数不定的时候,需要使用进制转换的模板;但是像PAT A1027这种已经明确给出了输入的数的范围是168以内,输出明确是13进制的2位数,所以就不要用模板,千万不要因为模板固化了自己的脑袋。#incl...原创 2018-04-23 14:46:01 · 258 阅读 · 0 评论 -
PAT 1074
PAT 1074输入00100 6 400000 4 9999900100 1 1230968237 6 -133218 3 0000099999 5 6823712309 2 33218输出00000 4 3321833218 3 1230912309 2 0010000100 1 9999999999 5 6823768237 6 -1#include <cstdio>原创 2017-11-25 22:35:21 · 273 阅读 · 0 评论 -
PAT 1039
PAT 1039输入11 54 7BOB5 DON2 FRA8 JAY9 KAT3 LOR6 ZOE11 4ANN0 BOB5 JAY9 LOR62 7ANN0 BOB5 FRA8 JAY9 JOE4 KAT3 LOR63 1BOB55 9AMY7 ANN0 BOB5 DON2 FRA8 JAY9 KAT3 LOR6 ZOE1ZOE1 ANN0 BOB5 JOE4 JAY9 F原创 2017-11-24 15:31:24 · 255 阅读 · 0 评论 -
PAT 1096
PAT 1096#include <cstdio>#include <iostream>#include <cmath>#include <algorithm>#include <string>#include <cstring>using namespace std;int main(){ long long n; scanf("%lld",&n); int an原创 2017-11-24 08:31:09 · 225 阅读 · 0 评论 -
PAT A1058. A+B in Hogwarts (20)
PAT A1058. A+B in Hogwarts (20)If you are a fan of Harry Potter, you would know the world of magic has its own currency system – as Hagrid explained it to Harry, “Seventeen silver Sickles to a Galle...原创 2018-05-08 09:01:26 · 225 阅读 · 0 评论