当前位置:网站首页>Zzuli:1056 lucky numbers
Zzuli:1056 lucky numbers
2022-07-03 14:35:00 【Snake_____】
Title Description
Xiao Ming has a preference for some numbers , for example , He likes it 7 Multiple , And don't like 4 Multiple , If an integer is 7 Multiple , instead of 4 Multiple , Xiao Ming will think this number is his lucky number . Now give two integers m and n, Please help Xiao Ming find it m To n The largest lucky number in the range . If m To n There are no lucky numbers in the range , The output “no”
Input
Two positive integers m and n(m < =n, And all of them are less than 10 Of 9 Power )
Output
An integer , namely m To n The largest lucky number in the range .
The sample input Copy
90 100
Sample output Copy
98
#include <stdio.h>
int main()
{
int i,m,n,c=0;
scanf("%d%d",&m,&n);
for(i=n;i>=m;i--)
{
if(i%7==0&&i%4!=0)
{
printf("%d",i);
c++;
break;
}
}
if(c==0)
{
printf("no");
}
return 0;
}边栏推荐
- adc128s022 ADC verilog设计实现
- 剑指 Offer 28. 对称的二叉树
- How Facebook moves instagram from AWS to its own server
- Find books ()
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- tonybot 人形机器人 红外遥控玩法 0630
- Luogu p5536 [xr-3] core city solution
- ShowMeBug入驻腾讯会议,开启专业级技术面试时代
- Common commands for getting started with mongodb database
- 7-4 BCD decryption (10 points)
猜你喜欢

NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线

分布式事务(Seata) 四大模式详解

Zzuli:1053 sine function

retrofit

Pyqt interface production (login + jump page)

修改数据库中的记录为什么报这个错

tonybot 人形机器人 查看端口并对应端口 0701
![[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?](/img/f6/fe61c84f289f0e74a45946dac687a6.jpg)
[qingniaochangping campus of Peking University] in the Internet industry, which positions are more popular as they get older?

如何查询淘宝天猫的宝贝类目
![Luogu p4047 [jsoi2010] tribal division solution](/img/7f/3fab3e94abef3da1f5652db35361df.png)
Luogu p4047 [jsoi2010] tribal division solution
随机推荐
retrofit
基因家族特征分析 - 染色体定位分析
ZABBIX saves the page blank after adding calculated items
String reverse order
Common commands for getting started with mongodb database
洛谷P5018 [NOIP2018 普及组] 对称二叉树 题解
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
ShowMeBug入驻腾讯会议,开启专业级技术面试时代
表单文本框的使用(一) 选择文本
分布式事务(Seata) 四大模式详解
天谋科技 Timecho 完成近亿元人民币天使轮融资,打造工业物联网原生时序数据库
【7.3】146. LRU caching mechanism
Strategy, tactics (and OKR)
SSH访问控制,多次失败登录即封掉IP,防止暴力破解
一文了解微分段应用场景与实现机制
Although not necessarily the best, it must be the hardest!
7-14 sum integer segments (C language)
7-28 monkeys choose King (Joseph problem)
pyQt界面制作(登录+跳转页面)
Accelerating strategy learning using parallel differentiable simulation