#13200: 測資二過不去QQ


fdhs107HandsomeKenny (Kenny Hsu)

學校 : 桃園市私立復旦高級中學
編號 : 69322
來源 : [111.251.10.25]
最後登入時間 :
2025-10-07 23:38:07

輸出一行

#include<iostream>
using namespace std;
int main()
{
long long a,b;
while(cin>>a>>b)
{
if(a>0&&a<=2147483647&&b>=0&&b<=2147483647)
{
long long n=a,x=b,y=0;
if(b==0)
cout<<"Go Kevin!!"<<endl;
else
{
while(n>0)
{
n-=1+y*b;
y++;
}
if(n==0)
{
cout<<"Go Kevin!!"<<endl;
}
else if(n<0)
{
cout<<"No Stop!!"<<endl;
}
}
}
}
}

#13247: Re:測資二過不去QQ


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [39.12.66.21]
最後登入時間 :
2025-04-20 17:19:22

把 if(a>0&&a<=2147483647&&b>=0&&b<=2147483647) 刪掉