#17663: 為甚麼一直80%


timmy940410 (遊艇)


#include<iostream>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int a,b,c;
cin>>a>>b>>c;
if(b<a) c=-c;
cout<<a;
while(a!=b){
a+=c;
cout<<" "<<a;
}
}

#17667: Re:為甚麼一直80%


asnewchien@gmail.com (david)


 

while(a!=b) 這裡