[ZJ]a095: 麥哲倫的陰謀
題目:
http://zerojudge.tw/ShowProblem?problemid=a095
-------------------------------------------------------------------------------------------------------
#include<cstdio>
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)!=EOF)
{
if(n == m)
printf("%d\n",m);
else
printf("%d\n",m+1);
}
return 0;
}
http://zerojudge.tw/ShowProblem?problemid=a095
-------------------------------------------------------------------------------------------------------
#include<cstdio>
int main()
{
int n,m;
while(scanf("%d%d",&n,&m)!=EOF)
{
if(n == m)
printf("%d\n",m);
else
printf("%d\n",m+1);
}
return 0;
}
留言
張貼留言