Code Submission Evaluation System Login

Datatähti 2016 alku

Start:2015-09-28 00:00:00
End:2015-10-12 00:00:00
 

Tasks | Scoreboard | Statistics


CSES - Datatähti 2016 alku - Results
History
2016-07-03 23:50:050
2016-07-03 19:39:50100
2016-07-03 19:39:030
2016-07-03 18:39:2012
2016-07-03 17:18:590
2016-07-03 16:44:2512
2016-07-03 16:43:490
2016-07-03 16:41:280
2015-10-02 15:08:5939
2015-10-02 15:08:43
2015-10-02 15:06:1739
2015-10-02 14:57:1339
2015-10-02 14:11:2239
2015-10-02 14:05:5639
2015-10-02 13:47:1639
2015-10-02 12:39:1539
2015-10-02 12:38:1139
2015-10-02 12:36:5439
2015-10-02 12:35:3739
2015-10-02 12:34:1539
2015-10-02 12:30:190
2015-10-02 12:26:0939
2015-10-02 11:46:1939
2015-10-02 11:45:190
2015-10-02 11:41:1739
2015-10-02 11:36:0839
2015-10-02 11:27:4239
2015-10-02 11:21:5539
2015-10-02 11:20:530
2015-10-02 11:19:560
2015-10-02 11:19:170
2015-10-02 11:14:240
2015-10-01 23:29:5739
2015-10-01 23:29:2839
2015-10-01 23:28:370
2015-10-01 23:23:0939
2015-10-01 23:21:450
2015-10-01 23:20:220
2015-10-01 23:18:33
2015-10-01 23:17:16
2015-10-01 23:16:00
2015-10-01 23:13:38
Task:Osajono
Sender:lutrarutra
Submission time:2015-10-02 15:08:59
Language:Java
Status:READY
Score:39

Feedback

groupverdictscore
#1ACCEPTED12
#2ACCEPTED27
#3TIME LIMIT EXCEEDED0

Test results

testverdicttime (s)group
#1ACCEPTED0.20 / 1.001details
#2ACCEPTED0.18 / 1.001details
#3ACCEPTED0.18 / 1.001details
#4ACCEPTED0.18 / 1.001details
#5ACCEPTED0.18 / 1.001details
#6ACCEPTED0.69 / 1.002details
#7ACCEPTED0.45 / 1.002details
#8ACCEPTED0.88 / 1.002details
#9ACCEPTED0.90 / 1.002details
#10ACCEPTED0.85 / 1.002details
#11TIME LIMIT EXCEEDED-- / 1.003details
#12TIME LIMIT EXCEEDED-- / 1.003details
#13TIME LIMIT EXCEEDED-- / 1.003details
#14TIME LIMIT EXCEEDED-- / 1.003details
#15TIME LIMIT EXCEEDED-- / 1.003details

Code



public class Osajono5 {

	 public static void main(String[] args)
	 {
		 IO io = new IO();
	     int tuloste = 0;
	     String input = io.next();
	     int inputLength = input.length();
	     
	     tuloste = tuloste + inputLength;
	     
	     for (int i = 0; i < inputLength-1; i++)
	     {
	    	 String kok = "" + input.charAt(i);
			 String endOfStr = input.substring(i);
	    	 tuloste = tuloste + Math.max(endOfStr.length() - endOfStr.replaceAll(kok, "").length()-1,0); 
	     }
	     io.println(tuloste);
	     io.close();
	 }
	 
}

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
BBBAABBBAAAABBAAAABAABAABBBBBB...
view   save

correct output
2554
view   save

user output
2554
view   save

Test 2

Group: 1

Verdict: ACCEPTED

input
GDFVYWQCZAFGICSXOSWBZMGPDBSSVL...
view   save

correct output
299
view   save

user output
299
view   save

Test 3

Group: 1

Verdict: ACCEPTED

input
AAAAAAAAAAAAAAAAAAAAAAAAAZAAAA...
view   save

correct output
4314
view   save

user output
4314
view   save

Test 4

Group: 1

Verdict: ACCEPTED

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
4231
view   save

user output
4231
view   save

Test 5

Group: 1

Verdict: ACCEPTED

input
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...
view   save

correct output
5050
view   save

user output
5050
view   save

Test 6

Group: 2

Verdict: ACCEPTED

input
BBABABBBABBAABBABBABAABAAABABA...
view   save

correct output
6253029
view   save

user output
6253029
view   save

Test 7

Group: 2

Verdict: ACCEPTED

input
RBKJMLDVQMKHYKCNDIVVKOMFUXTFMG...
view   save

correct output
485173
view   save

user output
485173
view   save

Test 8

Group: 2

Verdict: ACCEPTED

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
12427725
view   save

user output
12427725
view   save

Test 9

Group: 2

Verdict: ACCEPTED

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
12467549
view   save

user output
12467549
view   save

Test 10

Group: 2

Verdict: ACCEPTED

input
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...
view   save

correct output
12502500
view   save

user output
12502500
view   save

Test 11

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
BAAAAABABBABAABAABABABBBABBAAB...
view   save

correct output
2500051369
view   save

user output
(no output)
view   save

Test 12

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
ABBURXDRVXAYBPXXOQZNYHLWGUEEWR...
view   save

correct output
192407124
view   save

user output
(no output)
view   save

Test 13

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
4998050400
view   save

user output
(no output)
view   save

Test 14

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
4998850144
view   save

user output
(no output)
view   save

Test 15

Group: 3

Verdict: TIME LIMIT EXCEEDED

input
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...
view   save

correct output
5000050000
view   save

user output
(no output)
view   save