Code Submission Evaluation System Login

Datatähti 2018 alku

Start:2017-10-02 00:00:00
End:2017-10-16 00:00:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - Datatähti 2018 alku - Results
History
2017-10-15 22:24:090
2017-10-15 22:10:010
2017-10-13 19:41:30100
2017-10-13 19:38:240
2017-10-13 19:37:500
2017-10-13 19:36:430
2017-10-13 19:35:430
2017-10-13 19:34:440
2017-10-13 19:33:550
2017-10-13 19:32:400
2017-10-13 19:32:100
2017-10-13 19:28:320
2017-10-13 19:25:300
2017-10-13 19:25:000
2017-10-13 19:23:130
2017-10-13 19:21:580
2017-10-13 19:20:250
2017-10-13 19:15:470
2017-10-13 19:14:060
2017-10-13 19:10:430
2017-10-13 18:54:050
2017-10-13 18:51:440
2017-10-13 18:50:540
2017-10-13 16:29:400
2017-10-13 10:34:410
2017-10-13 10:33:150
2017-10-13 10:30:470
2017-10-12 20:05:170
2017-10-12 20:03:200
2017-10-12 20:00:180
2017-10-12 19:58:480
2017-10-12 19:39:560
2017-10-12 19:38:570
2017-10-12 19:10:370
2017-10-12 19:07:430
2017-10-12 18:58:510
2017-10-12 18:55:250
2017-10-12 18:54:100
Task:Merkkijono
Sender:Ilmari2000
Submission time:2017-10-13 19:41:30
Language:C++
Status:READY
Score:100

Feedback

groupverdictscore
#1ACCEPTED

Test results

testverdicttime (s)
#1ACCEPTED0.06 / 1.00details
#2ACCEPTED0.06 / 1.00details
#3ACCEPTED0.06 / 1.00details
#4ACCEPTED0.05 / 1.00details
#5ACCEPTED0.06 / 1.00details
#6ACCEPTED0.06 / 1.00details
#7ACCEPTED0.07 / 1.00details
#8ACCEPTED0.05 / 1.00details
#9ACCEPTED0.05 / 1.00details
#10ACCEPTED0.07 / 1.00details

Code

#include <iostream>
#include <string>
#include <cctype>
#include <algorithm>

int main(int argc, char* argv[])
{
	std::string str;
	std::cin >> str;
	int loop = 1;

	while(loop)
	{
		loop = 0;
		for(unsigned int i = 0; i < str.length(); i++)
		{
			char current = toupper(str[i]);

			int j;
			for(j = 0; toupper(str[i + j]) == current; j++);
			if(j > 1)
			{
				str.erase(i, j);
				loop = 1;
				i = -1;
			}
		}
	}

	std::cout << str << std::endl;
}

Test details

Test 1

Verdict: ACCEPTED

input
ABABABABABABABABABABABABABABAB...
view   save

correct output
ABABABABABABABABABABABABABABAB...
view   save

user output
ABABABABABABABABABABABABABABAB...
view   save

Test 2

Verdict: ACCEPTED

input
AABBAABBAABBAABBAABBAABBAABBAA...
view   save

correct output
(no output)
view   save

user output
(no output)
view   save

Test 3

Verdict: ACCEPTED

input
ABABABABABABABABABABABABABABAB...
view   save

correct output
(no output)
view   save

user output
(no output)
view   save

Test 4

Verdict: ACCEPTED

input
BBABABBBBBAABBBABABABBBBAAABAB...
view   save

correct output
BAB
view   save

user output
BAB
view   save

Test 5

Verdict: ACCEPTED

input
ACDCBBACDBBBACAACBBDBADBAABABA...
view   save

correct output
ACDCACDADBADABACACDCADADABABCA...
view   save

user output
ACDCACDADBADABACACDCADADABABCA...
view   save

Test 6

Verdict: ACCEPTED

input
EETFHIJOGACDHMGVFJCMETMZDEITTR...
view   save

correct output
TFHIJOGACDHMGVFJCMETMZDEIROTET...
view   save

user output
TFHIJOGACDHMGVFJCMETMZDEIROTET...
view   save

Test 7

Verdict: ACCEPTED

input
GOONLAHLYPRFCZKIKSJWAWWYJJPCDB...
view   save

correct output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...
view   save

user output
GNLAHLYPRFCZKIKSJWAYPCDNWYMRCE...
view   save

Test 8

Verdict: ACCEPTED

input
PISHWMOTCDDZFRMYMOMYDYYGJZIQHS...
view   save

correct output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...
view   save

user output
PISHWMOTCZFRMYMOMYDGJZIQHSVAOK...
view   save

Test 9

Verdict: ACCEPTED

input
QUVVTPXAMWWODFXRONJODPGBTCISGM...
view   save

correct output
QUTPXAMODFXRONJODPGBTCISGMVRBW...
view   save

user output
QUTPXAMODFXRONJODPGBTCISGMVRBW...
view   save

Test 10

Verdict: ACCEPTED

input
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save

correct output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save

user output
POXHAHYEZTLYNFSLABODMRNKDSKROZ...
view   save