327B. Hungry Sequence

Правка en1, от always_4ever_5_25__21_SS, 2016-05-28 02:13:07

OK, so i didn't get what the tutorial of that really meant, and that tutorial looked long..-_-

Fortunately, I found a better solution. And my solution is mainly like 2 lines!!! :p I think it's better if you see the code rather than me trying to explain it.....

include<bits/stdc++.h>

using namespace std;

int main(){ int n, i; cin>>n; for(i=0;i<n;i++)cout<<i+n*10<<" "; return 0; }

For any question or suggestion, feel free!!!

Теги #327b, hungry sequence

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский always_4ever_5_25__21_SS 2016-05-28 02:16:04 3
en1 Английский always_4ever_5_25__21_SS 2016-05-28 02:13:07 486 Initial revision (published)