QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#202979#2478. Tobacco Growingnameless_story#AC ✓14ms3904kbC++201.6kb2023-10-06 14:26:032023-10-06 14:26:03

Judging History

你现在查看的是最新测评结果

  • [2023-10-06 14:26:03]
  • 评测
  • 测评结果:AC
  • 用时:14ms
  • 内存:3904kb
  • [2023-10-06 14:26:03]
  • 提交

answer

#include"bits/stdc++.h"
using namespace std;
typedef long long ll;
#define all(x) (x).begin(),(x).end()
template<class T1,class T2> bool cmin(T1 &x,const T2 &y) { if (y<x) { x=y; return 1; }return 0; }
template<class T1,class T2> bool cmax(T1 &x,const T2 &y) { if (x<y) { x=y; return 1; }return 0; }

mt19937 rnd(2345);
const int dx[5]={1,0,-1,0,0},dy[5]={0,1,0,-1,0};
const ll inf=1e18;
int main()
{
	ios::sync_with_stdio(0); cin.tie(0);
	int n,m,i,j,k,l;
	// cin>>n>>m;
	n=m=31;
	vector f(n,vector<ll>(m));
	f[0][0]=1;
	auto av=[&](int x,int y)
		{
			return x>=0&&x<n&&y>=0&&y<m;
		};
	for (k=0; k<30; k++)
	{
		vector g(n,vector<ll>(m));
		for (i=0; i<n; i++) for (j=0; j<m; j++) for (l=0; l<5; l++) if (int x=i+dx[l],y=j+dy[l]; av(x,y))
		{
			g[x][y]=min(inf,g[x][y]+f[i][j]);
		}
		swap(f,g);
	}
	vector<tuple<ll,int,int>> a(19,{(ll)1e18,1,1});
	for (i=0; i<n; i++) for (j=0; j<m; j++) if (f[i][j]<inf&&f[i][j]) cmin(a[to_string(f[i][j]).size()],tuple{f[i][j],i,j});
	// for (auto [w,x,y]:a) cout<<w<<endl;
	ll q;
	cout<<n*m*100<<'\n';
	int x=-1e6+1,y=-1e6+1;
	for (k=0; k<100; k++)
	{
		for (i=0; i<n; i++) for (j=0; j<m; j++) cout<<x+i<<' '<<y+j<<' '<<(i==0&&j==0)<<'\n';
		x+=n+5; y+=m+5;
	}
	// for (k=0;k<)
	cin>>q;
	// return 0;
	vector<pair<int,int>> ans;
	while (q)
	{
		for (i=18; i; i--)
		{
			auto [w,x,y]=a[i];
			int xx=-1e6+1,yy=-1e6+1;
			while (q>=w)
			{
				q-=w;
				ans.push_back({xx+x,yy+y});
				xx+=n+5; yy+=m+5;
			}
		}
	}
	cout<<ans.size()<<' '<<30<<'\n';
	for (auto [x,y]:ans) cout<<x<<' '<<y<<'\n';
}

详细

Test #1:

score: 100
Accepted
time: 9ms
memory: 3668kb

input:

1

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #2:

score: 0
Accepted
time: 13ms
memory: 3608kb

input:

0

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #3:

score: 0
Accepted
time: 13ms
memory: 3600kb

input:

14

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #4:

score: 0
Accepted
time: 13ms
memory: 3904kb

input:

1000000000000000000

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #5:

score: 0
Accepted
time: 10ms
memory: 3668kb

input:

999999999999999999

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #6:

score: 0
Accepted
time: 14ms
memory: 3604kb

input:

999999999999999998

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #7:

score: 0
Accepted
time: 13ms
memory: 3900kb

input:

999999999999999997

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #8:

score: 0
Accepted
time: 13ms
memory: 3676kb

input:

999999999999999996

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #9:

score: 0
Accepted
time: 13ms
memory: 3896kb

input:

999999999999999995

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #10:

score: 0
Accepted
time: 13ms
memory: 3612kb

input:

999999999999999994

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #11:

score: 0
Accepted
time: 13ms
memory: 3604kb

input:

999999999999999993

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #12:

score: 0
Accepted
time: 13ms
memory: 3680kb

input:

999999999999999992

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #13:

score: 0
Accepted
time: 13ms
memory: 3708kb

input:

999999999999999991

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #14:

score: 0
Accepted
time: 13ms
memory: 3560kb

input:

35298

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #15:

score: 0
Accepted
time: 10ms
memory: 3680kb

input:

69839

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #16:

score: 0
Accepted
time: 13ms
memory: 3904kb

input:

64552

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #17:

score: 0
Accepted
time: 14ms
memory: 3664kb

input:

9330

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #18:

score: 0
Accepted
time: 13ms
memory: 3868kb

input:

39491

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #19:

score: 0
Accepted
time: 13ms
memory: 3604kb

input:

140506867

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #20:

score: 0
Accepted
time: 13ms
memory: 3832kb

input:

414385616

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #21:

score: 0
Accepted
time: 9ms
memory: 3644kb

input:

82559469

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #22:

score: 0
Accepted
time: 10ms
memory: 3664kb

input:

95538099

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #23:

score: 0
Accepted
time: 13ms
memory: 3704kb

input:

184040515

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #24:

score: 0
Accepted
time: 14ms
memory: 3604kb

input:

4

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #25:

score: 0
Accepted
time: 13ms
memory: 3612kb

input:

3

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #26:

score: 0
Accepted
time: 13ms
memory: 3608kb

input:

5

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #27:

score: 0
Accepted
time: 10ms
memory: 3556kb

input:

8

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #28:

score: 0
Accepted
time: 9ms
memory: 3664kb

input:

7

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #29:

score: 0
Accepted
time: 13ms
memory: 3868kb

input:

9

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #30:

score: 0
Accepted
time: 13ms
memory: 3608kb

input:

16

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #31:

score: 0
Accepted
time: 13ms
memory: 3608kb

input:

15

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #32:

score: 0
Accepted
time: 9ms
memory: 3672kb

input:

17

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #33:

score: 0
Accepted
time: 13ms
memory: 3604kb

input:

32

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #34:

score: 0
Accepted
time: 13ms
memory: 3904kb

input:

31

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #35:

score: 0
Accepted
time: 13ms
memory: 3604kb

input:

33

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #36:

score: 0
Accepted
time: 10ms
memory: 3868kb

input:

64

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #37:

score: 0
Accepted
time: 6ms
memory: 3604kb

input:

63

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #38:

score: 0
Accepted
time: 13ms
memory: 3900kb

input:

65

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #39:

score: 0
Accepted
time: 13ms
memory: 3904kb

input:

128

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #40:

score: 0
Accepted
time: 13ms
memory: 3640kb

input:

127

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #41:

score: 0
Accepted
time: 13ms
memory: 3704kb

input:

129

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #42:

score: 0
Accepted
time: 14ms
memory: 3640kb

input:

256

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #43:

score: 0
Accepted
time: 13ms
memory: 3660kb

input:

255

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #44:

score: 0
Accepted
time: 13ms
memory: 3672kb

input:

257

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #45:

score: 0
Accepted
time: 13ms
memory: 3668kb

input:

512

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #46:

score: 0
Accepted
time: 10ms
memory: 3680kb

input:

511

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #47:

score: 0
Accepted
time: 14ms
memory: 3644kb

input:

513

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #48:

score: 0
Accepted
time: 13ms
memory: 3532kb

input:

1024

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #49:

score: 0
Accepted
time: 13ms
memory: 3664kb

input:

1023

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #50:

score: 0
Accepted
time: 9ms
memory: 3640kb

input:

1025

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #51:

score: 0
Accepted
time: 13ms
memory: 3668kb

input:

2048

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #52:

score: 0
Accepted
time: 14ms
memory: 3664kb

input:

2047

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #53:

score: 0
Accepted
time: 13ms
memory: 3668kb

input:

2049

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #54:

score: 0
Accepted
time: 10ms
memory: 3896kb

input:

18014398509481984

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #55:

score: 0
Accepted
time: 10ms
memory: 3904kb

input:

18014398509481983

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #56:

score: 0
Accepted
time: 6ms
memory: 3612kb

input:

18014398509481985

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #57:

score: 0
Accepted
time: 14ms
memory: 3672kb

input:

36028797018963968

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #58:

score: 0
Accepted
time: 13ms
memory: 3552kb

input:

36028797018963967

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #59:

score: 0
Accepted
time: 13ms
memory: 3604kb

input:

36028797018963969

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #60:

score: 0
Accepted
time: 10ms
memory: 3676kb

input:

72057594037927936

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #61:

score: 0
Accepted
time: 10ms
memory: 3900kb

input:

72057594037927935

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #62:

score: 0
Accepted
time: 13ms
memory: 3832kb

input:

72057594037927937

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #63:

score: 0
Accepted
time: 13ms
memory: 3608kb

input:

144115188075855872

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #64:

score: 0
Accepted
time: 13ms
memory: 3608kb

input:

144115188075855871

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #65:

score: 0
Accepted
time: 13ms
memory: 3612kb

input:

144115188075855873

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #66:

score: 0
Accepted
time: 10ms
memory: 3668kb

input:

288230376151711744

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #67:

score: 0
Accepted
time: 13ms
memory: 3672kb

input:

288230376151711743

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #68:

score: 0
Accepted
time: 11ms
memory: 3612kb

input:

288230376151711745

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #69:

score: 0
Accepted
time: 13ms
memory: 3868kb

input:

576460752303423488

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #70:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

576460752303423487

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #71:

score: 0
Accepted
time: 13ms
memory: 3604kb

input:

576460752303423489

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!

Test #72:

score: 0
Accepted
time: 13ms
memory: 3900kb

input:

13

output:

96100
-999999 -999999 1
-999999 -999998 0
-999999 -999997 0
-999999 -999996 0
-999999 -999995 0
-999999 -999994 0
-999999 -999993 0
-999999 -999992 0
-999999 -999991 0
-999999 -999990 0
-999999 -999989 0
-999999 -999988 0
-999999 -999987 0
-999999 -999986 0
-999999 -999985 0
-999999 -999984 0
-99999...

result:

ok correct solution!