CSES - Datatähti 2018 alku - Results
Submission details
Task:Merkkijono
Sender:Katajisto
Submission time:2017-10-03 18:05:00 +0300
Language:C++
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.68 sdetails
#2ACCEPTED0.72 sdetails
#3ACCEPTED0.67 sdetails
#40.64 sdetails
#50.67 sdetails
#60.74 sdetails
#70.66 sdetails
#80.68 sdetails
#90.66 sdetails
#100.64 sdetails

Code

#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
	string jono = "";
	for (int x = 1; jono.length() <= 25000000; x++)
	{
		jono.append(to_string(x));
	}
	vector<int> q = {};
	int amount;
	cin >> amount;
	for (int x = 1; x <= amount; x++)
	{
		int temp;
		cin >> temp;
		q.push_back(temp);
	}
	for (int query : q)
	{
		if(query > 25000000)
		{
			cout << "1" << endl;
		}
		else
		{
		cout << jono[query - 1] << endl;
		}
	}
}

Test details

Test 1

Verdict:

input
ABABABABABABABABABABABABABABAB...

correct output
ABABABABABABABABABABABABABABAB...

user output
(empty)

Test 2

Verdict: ACCEPTED

input
AABBAABBAABBAABBAABBAABBAABBAA...

correct output
(empty)

user output
(empty)

Test 3

Verdict: ACCEPTED

input
ABABABABABABABABABABABABABABAB...

correct output
(empty)

user output
(empty)

Test 4

Verdict:

input
BBABABBBBBAABBBABABABBBBAAABAB...

correct output
BAB

user output
(empty)

Test 5

Verdict:

input
ACDCBBACDBBBACAACBBDBADBAABABA...

correct output
ACDCACDADBADABACACDCADADABABCA...

user output
(empty)

Test 6

Verdict:

input
EETFHIJOGACDHMGVFJCMETMZDEITTR...

correct output
TFHIJOGACDHMGVFJCMETMZDEIROTET...

user output
(empty)

Test 7

Verdict:

input
GOONLAHLYPRFCZKIKSJWAWWYJJPCDB...

correct output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...

user output
(empty)

Test 8

Verdict:

input
PISHWMOTCDDZFRMYMOMYDYYGJZIQHS...

correct output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...

user output
(empty)

Test 9

Verdict:

input
QUVVTPXAMWWODFXRONJODPGBTCISGM...

correct output
QUTPXAMODFXRONJODPGBTCISGMVRBW...

user output
(empty)

Test 10

Verdict:

input
POXHAHYEZTLYNFSLABODMRNKDSKROZ...

correct output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...

user output
(empty)