Solution for List Minimum (Easy) in C++


March 14, 2020 0.945013 seconds C++
#include <iostream>
#include <math.h>
#include <bits/stdc++.h>

using namespace std;

  int main(){
      ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
      int n, i;
      scanf ("%d",&n); 
      for(i = 1; i <= n; i++){
        printf("%d ", i);
      }
      return 0;
  }

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.