daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Dec 4th, 2018 589 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int a[2005];
  4. int main()
  5. {
  6.     int n;
  7.     scanf("%d",&n);
  8.     printf("%d\n1 %d 500000\n",n+1,n);
  9.     for (int i=0;i<n;i++)
  10.     scanf("%d",&a[i]);
  11.     for (int i=0;i<n;i++)
  12.     printf("2 %d %d\n",i+1,a[i]+500000-i);
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top