错误存档

https://atcoder.jp/contests/arc102/tasks/arc102_b

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int l;
    cin>>l;
    cout<<"20 41"<<endl;
    int cnt=0;
    for(int i=2;i<=20;i++){
        cout<<i-1<<" "<<i<<" "<<(1<<(i-2))<<endl;
        cout<<i-1<<" "<<i<<" "<<"0"<<endl;
        cnt+=2;
    }
    cout<<"19 20 500000"<<endl;
    cout<<"19 20 700000"<<endl;
    cout<<"19 20 900000"<<endl;
    //cout<<cnt+1<<endl;
    return 0;
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注