PTA甲级——1006 1006 Sign In and Sign OutAt the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of si 2024-04-17 PAT甲级备考专区 #练习 #算法 #PAT #大模拟
PTA甲级——1005 1005 Spell It RightInput Specification:Each input file contains one test case. Each case occupies one line which contains an N (≤10^100). Output Specification:For each test case, output in one line th 2024-04-17 PAT甲级备考专区 #练习 #算法 #PAT #大模拟
PTA甲级——1002 1002 A+B for PolynomialsThis time, you are supposed to find A+B where A and B are two polynomials. Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line 2024-04-17 PAT甲级备考专区 #练习 #算法 #PAT #大模拟
PTA甲级——1001 1001 A+B FormatCalculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specification: 2024-04-17 PAT甲级备考专区 #练习 #算法 #PAT #大模拟
18、设置各个文章的背景图片 直接在文章里设置即可 12345678910---title: 23、天梯赛——埃氏筛法+约数个数+约数和(3月7日)index_img: https://cdn.jsdelivr.net/gh/mogullzr/Typora_img@main/202402082325025.jpgbanner_img: https://cdn.jsdelivr.net/gh/mogullzr/Typora_im 2024-04-10 Hexo-Fluid搭建个人博客
算法学习专栏——Codeforces——Codeforces Round 934(Div.2) CodeforcesRound934A:Destroying BridgesProblem - A - Codeforces 1234567891011121314151617181920212223242526272829#include <iostream>#include <algorithm>#include <cstring>using namespa 2024-03-17 算法练习专栏 #算法 #比赛 #ACM #Codeforces
算法学习专栏——Codeforces——Codeforces Round 934(Div.2) EducationalCodeforcesRound163A:Special CharactersProblem - A - Codeforces 思路 这道题目有一个思路其实就是一个字:猜。通过枚举的办法得出一个结论:如果可以构造出这种字符串,那么就这个n一定是一个偶数,具体构造方式可以随意指定一种方式,本人的方式为:AAB为一组。 第二种得出结论的思路就是贡献法:由题意可知,1个相同的 2024-03-16 算法练习专栏 #算法 #比赛 #ACM #Codeforces #题解