답안 #965128

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
965128 2024-04-18T07:28:11 Z emptypringlescan Ancient Machine (JOI21_ancient_machine) C++17
70 / 100
59 ms 8596 KB
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;

void Anna(int N, vector<char> S){
	bool st=true;
	for(int i=0; i<N; i++){
		if(st&&S[i]=='X') Send(0),st=false;
		else if(st||S[i]=='Z') Send(1);
		else Send(0);
	}
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
void Bruno(int N, int L, std::vector<int> A) {
	stack<int> st;
	for(int i=0; i<N; i++){
		if(A[i]==0) st.push(i);
		else{
			while(st.size()>1){
				Remove(st.top());
				st.pop();
			}
			Remove(i);
		}
	}
	while(!st.empty()){
		Remove(st.top());
		st.pop();
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 784 KB Output is correct
2 Correct 0 ms 784 KB Output is correct
3 Correct 0 ms 784 KB Output is correct
4 Correct 0 ms 792 KB Output is correct
5 Correct 1 ms 948 KB Output is correct
6 Correct 0 ms 776 KB Output is correct
7 Correct 0 ms 780 KB Output is correct
8 Correct 0 ms 792 KB Output is correct
9 Correct 0 ms 796 KB Output is correct
10 Correct 1 ms 800 KB Output is correct
11 Correct 1 ms 800 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Partially correct 40 ms 8372 KB Partially correct
2 Partially correct 41 ms 8368 KB Partially correct
3 Partially correct 47 ms 8440 KB Partially correct
4 Partially correct 46 ms 8364 KB Partially correct
5 Partially correct 42 ms 8480 KB Partially correct
6 Partially correct 40 ms 8364 KB Partially correct
7 Partially correct 40 ms 8404 KB Partially correct
8 Partially correct 45 ms 8360 KB Partially correct
9 Partially correct 40 ms 8264 KB Partially correct
10 Partially correct 44 ms 8072 KB Partially correct
11 Partially correct 40 ms 8272 KB Partially correct
12 Partially correct 40 ms 8368 KB Partially correct
13 Partially correct 40 ms 8400 KB Partially correct
14 Partially correct 49 ms 8344 KB Partially correct
15 Partially correct 44 ms 8212 KB Partially correct
16 Partially correct 48 ms 8320 KB Partially correct
17 Partially correct 40 ms 8284 KB Partially correct
18 Partially correct 53 ms 8232 KB Partially correct
19 Partially correct 46 ms 8596 KB Partially correct
20 Partially correct 45 ms 8344 KB Partially correct
21 Partially correct 39 ms 8384 KB Partially correct
22 Partially correct 40 ms 8160 KB Partially correct
23 Partially correct 44 ms 8376 KB Partially correct
24 Partially correct 42 ms 8428 KB Partially correct
25 Partially correct 46 ms 8168 KB Partially correct
26 Partially correct 46 ms 8200 KB Partially correct
27 Partially correct 46 ms 8364 KB Partially correct
28 Partially correct 48 ms 8520 KB Partially correct
29 Partially correct 55 ms 8288 KB Partially correct
30 Partially correct 45 ms 8340 KB Partially correct
31 Partially correct 59 ms 8200 KB Partially correct
32 Partially correct 40 ms 8184 KB Partially correct
33 Partially correct 48 ms 8380 KB Partially correct