Блог пользователя always_4ever_5_25__21_SS

Автор always_4ever_5_25__21_SS, история, 8 лет назад, По-английски

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!!!

  • Проголосовать: нравится
  • -14
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by always_4ever_5_25__21_SS (previous revision, new revision, compare).

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

To be very simple You just have to print N Prime Numbers less than 10^7 .

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Do you seriously concatenate every line and believe that you have written only one line of code? :-/

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится
void solve()
{
    int n;cin>>n;
    for(int i=1e6-n;i<1e6;i++)
        cout<<i<<" ";
}

And that's My idea for It...