QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#490952#8784. Dwarfs' Bedtimewy2025AC ✓12ms4064kbC++141.2kb2024-07-25 16:50:262024-07-25 16:50:26

Judging History

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

  • [2024-07-25 16:50:26]
  • 评测
  • 测评结果:AC
  • 用时:12ms
  • 内存:4064kb
  • [2024-07-25 16:50:26]
  • 提交

answer

#include<bits/stdc++.h>
#define ll long long
#define x first
#define y second
using namespace std;
const int N=110;
int n;
struct dog{int t,f,nx;}a[N];
priority_queue<pair<int,int> > q;

bool ask(int id,int t){
	if(t/60>9) printf("at %d:",t/60);
	else printf("at 0%d:",t/60);
	t%=60;
	if(t>9) printf("%d check %d\n",t,id);
	else printf("0%d check %d\n",t,id);
	cout.flush();
	string ans;
	cin>>ans;
	return ans[1]=='w';
}

signed main(){
	cin>>n;
	for(int i=1;i<=n;i++) q.push({0,i}),a[i]={0,-1,47};
	while(!q.empty()){
		auto u=q.top();q.pop(),u.x*=-1;
		if(u.x==1440){
			a[u.y].t=720*a[u.y].f;
			continue;
		}
		bool f=ask(u.y,u.x);
		if(!~a[u.y].f){
			a[u.y].f=f;
			a[u.y].t=u.x,q.push({-(u.x+a[u.y].nx),u.y}),a[u.y].nx--;
		}
		else{
			if(a[u.y].f!=f){
				if(u.x-a[u.y].t>=720) u.x++;
				else u.x=a[u.y].t+720;
				q.push({-u.x,u.y});
			}
			else{
				if(u.x-a[u.y].t>=720) a[u.y].t=u.x-(720+(u.x-a[u.y].t==720))*a[u.y].f;
				else a[u.y].t=u.x,q.push({-(u.x+a[u.y].nx),u.y}),a[u.y].nx--;
			}
		}
	}
	printf("answer\n");
	for(int i=1,t;i<=n;i++){
		t=a[i].t;
		if(t/60>9) printf("%d:",t/60);
		else printf("0%d:",t/60);
		t%=60;
		if(t>9) printf("%d\n",t);
		else printf("0%d\n",t);
	}
	return 0;
}

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3752kb

input:

2
awake
asleep
awake
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep

output:

at 00:00 check 2
at 00:00 check 1
at 00:47 check 2
at 00:47 check 1
at 01:33 check 2
at 01:33 check 1
at 02:18 check 2
at 02:18 check 1
at 03:02 check 1
at 03:45 check 1
at 04:27 check 1
at 05:08 check 1
at 05:48 check 1
at 06:27 check 1
at 07:05 check 1
at 07:42 check 1
at 08:18 check 1
at 13:33 ch...

result:

ok n = 2, total = 45, max = 32

Test #2:

score: 0
Accepted
time: 1ms
memory: 3956kb

input:

1
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake

output:

at 00:00 check 1
at 00:47 check 1
at 01:33 check 1
at 02:18 check 1
at 03:02 check 1
at 03:45 check 1
at 04:27 check 1
at 05:08 check 1
at 05:48 check 1
at 06:27 check 1
at 07:05 check 1
at 07:42 check 1
at 08:18 check 1
at 08:53 check 1
at 09:27 check 1
at 10:00 check 1
at 10:32 check 1
at 11:03 ch...

result:

ok n = 1, total = 47, max = 47

Test #3:

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

input:

3
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
...

output:

at 00:00 check 3
at 00:00 check 2
at 00:00 check 1
at 00:47 check 3
at 00:47 check 2
at 00:47 check 1
at 01:33 check 3
at 01:33 check 2
at 01:33 check 1
at 02:18 check 3
at 02:18 check 2
at 02:18 check 1
at 03:02 check 3
at 03:02 check 2
at 03:02 check 1
at 03:45 check 3
at 03:45 check 2
at 03:45 ch...

result:

ok n = 3, total = 141, max = 47

Test #4:

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

input:

24
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep...

output:

at 00:00 check 24
at 00:00 check 23
at 00:00 check 22
at 00:00 check 21
at 00:00 check 20
at 00:00 check 19
at 00:00 check 18
at 00:00 check 17
at 00:00 check 16
at 00:00 check 15
at 00:00 check 14
at 00:00 check 13
at 00:00 check 12
at 00:00 check 11
at 00:00 check 10
at 00:00 check 9
at 00:00 chec...

result:

ok n = 24, total = 858, max = 50

Test #5:

score: 0
Accepted
time: 5ms
memory: 3784kb

input:

24
awake
asleep
awake
awake
asleep
asleep
asleep
awake
awake
awake
asleep
asleep
awake
awake
awake
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
awake
awake
asleep
awake
awake
asleep
asleep
asleep
awake
awake
awake
asleep
asleep
awake
awake
awake
asleep
awake
asleep
asleep
awake
asleep
aslee...

output:

at 00:00 check 24
at 00:00 check 23
at 00:00 check 22
at 00:00 check 21
at 00:00 check 20
at 00:00 check 19
at 00:00 check 18
at 00:00 check 17
at 00:00 check 16
at 00:00 check 15
at 00:00 check 14
at 00:00 check 13
at 00:00 check 12
at 00:00 check 11
at 00:00 check 10
at 00:00 check 9
at 00:00 chec...

result:

ok n = 24, total = 836, max = 49

Test #6:

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

input:

100
awake
asleep
asleep
asleep
awake
awake
asleep
awake
awake
awake
asleep
asleep
awake
asleep
asleep
asleep
awake
asleep
awake
asleep
asleep
asleep
asleep
awake
awake
asleep
asleep
awake
awake
asleep
awake
awake
asleep
awake
asleep
awake
asleep
awake
asleep
awake
asleep
awake
awake
asleep
asleep
aw...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3040, max = 50

Test #7:

score: 0
Accepted
time: 4ms
memory: 3956kb

input:

100
asleep
awake
awake
awake
awake
awake
awake
awake
asleep
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
awake
asleep
awake
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
asleep
awake
awake
awake
asleep
asleep
asleep
awake
awake
awake
asleep
awake
awake
asleep
awake
asleep
...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3021, max = 50

Test #8:

score: 0
Accepted
time: 12ms
memory: 4064kb

input:

100
awake
awake
awake
asleep
awake
asleep
asleep
awake
awake
awake
awake
asleep
awake
awake
asleep
asleep
awake
awake
asleep
awake
awake
asleep
awake
asleep
asleep
awake
awake
awake
asleep
awake
asleep
asleep
awake
awake
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
asleep
awake
asleep
aslee...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3060, max = 50

Test #9:

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

input:

100
awake
asleep
asleep
awake
awake
awake
awake
awake
asleep
awake
asleep
awake
awake
awake
awake
awake
asleep
awake
awake
asleep
asleep
asleep
asleep
asleep
awake
asleep
asleep
asleep
awake
awake
awake
asleep
awake
asleep
awake
asleep
awake
awake
asleep
asleep
asleep
awake
asleep
awake
asleep
awake...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3194, max = 50

Test #10:

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

input:

100
awake
asleep
asleep
awake
asleep
asleep
awake
awake
asleep
awake
asleep
asleep
awake
asleep
awake
asleep
awake
awake
asleep
awake
awake
awake
asleep
asleep
awake
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
awake
asleep
asleep
awake
asleep
awake
asleep
awake
awake
asleep
a...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3086, max = 50

Test #11:

score: 0
Accepted
time: 5ms
memory: 4064kb

input:

100
awake
asleep
asleep
asleep
asleep
awake
asleep
asleep
asleep
asleep
awake
asleep
asleep
awake
awake
asleep
asleep
asleep
awake
asleep
asleep
awake
awake
asleep
awake
awake
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 2898, max = 50

Test #12:

score: 0
Accepted
time: 7ms
memory: 3652kb

input:

100
awake
asleep
awake
asleep
asleep
awake
awake
asleep
asleep
awake
asleep
awake
awake
asleep
asleep
asleep
awake
awake
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
asleep
asleep
asleep
awake
asleep
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
asleep
asleep
asleep
asleep
awake...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3185, max = 49

Test #13:

score: 0
Accepted
time: 3ms
memory: 3792kb

input:

100
awake
asleep
awake
awake
awake
awake
awake
awake
asleep
asleep
asleep
awake
awake
asleep
asleep
awake
asleep
awake
awake
awake
asleep
asleep
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
awake
asleep
asleep
asleep
awake
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
awake
asleep
...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3331, max = 50

Test #14:

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

input:

100
asleep
awake
asleep
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
awake
asleep
awake
asleep
awake
asleep
awake
awake
awake
awake
asleep
awake
asleep
asleep
asleep
awake
asleep
asleep
awake
awake
asleep
awake
asleep
asleep
asleep
awake
awake
...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3003, max = 50

Test #15:

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

input:

100
awake
asleep
awake
asleep
asleep
awake
asleep
awake
asleep
asleep
asleep
asleep
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
awake
asleep
awake
awake
asleep
awake
asleep
awake
asleep
awake
asleep
awake
awake
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awak...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 2863, max = 50

Test #16:

score: 0
Accepted
time: 3ms
memory: 3724kb

input:

100
asleep
asleep
asleep
awake
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
awake
awake
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
awake
awake
asleep
asleep
awake
asle...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 2971, max = 50

Test #17:

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

input:

100
awake
awake
asleep
awake
awake
asleep
awake
awake
awake
awake
awake
asleep
asleep
asleep
asleep
awake
awake
asleep
awake
asleep
awake
awake
awake
asleep
awake
asleep
asleep
asleep
asleep
asleep
awake
awake
asleep
awake
awake
asleep
awake
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
awak...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3267, max = 50

Test #18:

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

input:

100
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
asleep
awake
asleep
asleep
asleep
awake
awake
awake
asleep
asleep
asleep
awake
asleep
asleep
awake
awake
awake
awake
asleep
asleep
asleep
awake
awake
asleep
asleep
awake
asleep
asleep
asleep
awake
asleep
awake
asleep
asleep
awake
asleep
aslee...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3181, max = 49

Test #19:

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

input:

100
awake
awake
awake
asleep
asleep
awake
awake
awake
awake
asleep
awake
awake
asleep
awake
awake
asleep
asleep
awake
awake
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
awake
asleep
awake
asleep
awake
asleep
awake
awake
asleep
asleep
awake
awake
asleep
asleep
awake
asleep
awake
awake
awake
...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3007, max = 50

Test #20:

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

input:

100
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
asleep
asleep
awake
asleep
awake
asleep
awake
asleep
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
awake
awake
asleep
asleep
asleep
awake
awake
asleep
awake
awake
awake
awake
asleep
asleep
asleep
asleep
asl...

output:

at 00:00 check 100
at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 ch...

result:

ok n = 100, total = 3051, max = 50

Test #21:

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

input:

98
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
asleep
asleep
asleep
awake
asleep
awake
awake
awake
awake
asleep
awake
awake
asleep
asleep
awake
awake
awake
asleep
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
awake
asleep
awake
awake
asleep
asleep
aslee...

output:

at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 che...

result:

ok n = 98, total = 2865, max = 50

Test #22:

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

input:

99
awake
awake
awake
asleep
awake
awake
asleep
awake
awake
awake
awake
awake
asleep
asleep
asleep
asleep
awake
awake
awake
asleep
awake
asleep
asleep
asleep
asleep
awake
asleep
awake
awake
awake
asleep
awake
awake
asleep
asleep
asleep
awake
asleep
awake
awake
awake
asleep
asleep
asleep
awake
awake
a...

output:

at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 che...

result:

ok n = 99, total = 3017, max = 49

Test #23:

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

input:

95
asleep
asleep
asleep
asleep
asleep
awake
awake
asleep
awake
asleep
awake
awake
asleep
asleep
asleep
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
asleep
awake
asleep
awake
asleep
asleep
awake
asleep
awake
awake
asleep
asleep
asleep
awake
awake
awake
asleep
asleep
asleep
asleep
awake
awa...

output:

at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 check 80
at 00:00 che...

result:

ok n = 95, total = 2926, max = 50

Test #24:

score: 0
Accepted
time: 3ms
memory: 3784kb

input:

93
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awa...

output:

at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 check 80
at 00:00 check 79
at 00:00 check 78
at 00:00 che...

result:

ok n = 93, total = 3119, max = 50

Test #25:

score: 0
Accepted
time: 4ms
memory: 3724kb

input:

93
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awa...

output:

at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 check 80
at 00:00 check 79
at 00:00 check 78
at 00:00 che...

result:

ok n = 93, total = 2694, max = 50

Test #26:

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

input:

97
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awa...

output:

at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 che...

result:

ok n = 97, total = 3020, max = 50

Test #27:

score: 0
Accepted
time: 3ms
memory: 3788kb

input:

95
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asl...

output:

at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 check 80
at 00:00 che...

result:

ok n = 95, total = 2976, max = 50

Test #28:

score: 0
Accepted
time: 3ms
memory: 3972kb

input:

97
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asl...

output:

at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 che...

result:

ok n = 97, total = 3154, max = 50

Test #29:

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

input:

96
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asl...

output:

at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 che...

result:

ok n = 96, total = 3087, max = 50

Test #30:

score: 0
Accepted
time: 4ms
memory: 3760kb

input:

92
asleep
awake
awake
awake
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
a...

output:

at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 check 80
at 00:00 check 79
at 00:00 check 78
at 00:00 check 77
at 00:00 che...

result:

ok n = 92, total = 2909, max = 50

Test #31:

score: 0
Accepted
time: 8ms
memory: 3720kb

input:

95
awake
asleep
asleep
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
awake
awake
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
awake
awake
awake
awake
awake
awake
asleep
awake
...

output:

at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 check 80
at 00:00 che...

result:

ok n = 95, total = 2573, max = 49

Test #32:

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

input:

99
awake
awake
awake
awake
awake
awake
asleep
awake
asleep
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
awake
asleep
awake
awake
awake
awake
asleep
awake
asleep
awake
asleep
asleep
awake
awake
awake
awake
asleep
awake
awake
awake
a...

output:

at 00:00 check 99
at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 che...

result:

ok n = 99, total = 2848, max = 50

Test #33:

score: 0
Accepted
time: 5ms
memory: 3652kb

input:

96
awake
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
asleep
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
as...

output:

at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 check 81
at 00:00 che...

result:

ok n = 96, total = 3123, max = 50

Test #34:

score: 0
Accepted
time: 5ms
memory: 3728kb

input:

97
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
asleep
awake
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
asleep
...

output:

at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 check 82
at 00:00 che...

result:

ok n = 97, total = 3226, max = 50

Test #35:

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

input:

98
asleep
awake
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
asleep
awake
awake
asleep
asleep
asleep
asleep
awake
asleep
asleep
asleep
asleep
asleep
awake
asleep
awake
asleep
asleep
awake
asleep
awake
awake...

output:

at 00:00 check 98
at 00:00 check 97
at 00:00 check 96
at 00:00 check 95
at 00:00 check 94
at 00:00 check 93
at 00:00 check 92
at 00:00 check 91
at 00:00 check 90
at 00:00 check 89
at 00:00 check 88
at 00:00 check 87
at 00:00 check 86
at 00:00 check 85
at 00:00 check 84
at 00:00 check 83
at 00:00 che...

result:

ok n = 98, total = 3103, max = 50

Extra Test:

score: 0
Extra Test Passed