热门

最新

红包

立Flag

投票

同城

我的

发布
m0_74384754
菜包咕咕嘎嘎
3 年前
truem0_74384754

p34
韩信点兵

#define LOCAL
#include<stdio.h>
int main()
{
#ifdef LOCAL
freopen("datain.txt","r",stdin);
freopen("dataout.txt","w",stdout);
#endif
int a,b,c,n;
while( scanf("%d %d %d",&a,&b,&c)==3)
{int i;
for( i=10;i<=100;i++)
if(i%3==a&&i%5==b&&i%7==c)
{printf("%d\n",i);break; }
if(i>100)
printf("no\n");

}
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
哈喽
立即登录