找规律
文章平均质量分 51
emo的鱼香roise
莫道桑榆晚,为霞尚满天
展开
-
zcmu ——5199: Morse Code(找规律,类似斐波那契数列)
DescriptionMorse code, also known as Morse code, is a kind of on-off signal code, which expresses different English letters, numbers and punctuation symbols through different order. It was invented in 1837 and is an early form of digital communication. D原创 2022-05-23 20:49:59 · 160 阅读 · 0 评论 -
zcmu-1696: 计算啦(找规律)
题目描述给你一个数n,你要在[4,n]范围内找到一个最大的质数x,使得x-4和x+4也是质数(n<=10^12)输入一个数n输出不存在输出-1,否则输出x样例输入8样例输出7代码:#include<bits/stdc++.h>using namespace std;int main(){ long long int n; while(~scanf("%lld",&n)){ if(n<7)printf...原创 2022-04-08 10:57:44 · 480 阅读 · 0 评论 -
zcmu-1225: Give me the answer(找规律)
题目描述Farmer John commanded his cows to searchzcmu- for different sets of numbers that sum to a given number.The cows use only numbers that are an integer power of 2. Here are the possible sets of numbers thatsum to 7:1) 1+1+1+1+1+1+12) 1+1+1+1+1+23)原创 2022-04-01 10:18:18 · 282 阅读 · 0 评论