mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
1b77522684
4800-4899
22 lines
589 B
C++
22 lines
589 B
C++
#include<iostream>
|
|
#include<cstdio>
|
|
using namespace std;
|
|
const int T = 30;
|
|
int main()
|
|
{
|
|
int c;
|
|
while (scanf("%d",&c)!=EOF)
|
|
{
|
|
int n , m , i ;
|
|
n = T * 2 + 1;
|
|
m = T * 3;
|
|
printf("%d %d\n",n,m);
|
|
for (int i = 0 ; i <T ; i ++)
|
|
printf("%d %d %d\n",i * 2 + 1 , i * 2 + 2 , 0);
|
|
for (int i = 0 ; i <T ; i ++)
|
|
printf("%d %d %d\n",i * 2 + 2 , i * 2 + 3 , - ( 1 << T - i ));
|
|
for (int i = 0 ; i <T ; i ++)
|
|
printf("%d %d %d\n",i * 2 + 1 , i * 2 + 3 , -( 1 << T - i - 1 ));
|
|
}
|
|
}
|