# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
515594 | myvaluska | Election (BOI18_election) | C++14 | 3048 ms | 1376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// election.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int n;
cin >> n;
string s;
cin >> s;
int q;
cin >> q;
while (q--)
{
int l;
cin >> l;
int r;
cin >> r;
l -= 1;
r -= 1;
vector<int>v(n,1);
int hlas = 0;
for (int i = l; i <= r; i++)
{
if (s[i] == 'C')
{
hlas += 1;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |