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
2015-10-01 18:33:34100
2015-10-01 18:31:200
2015-10-01 17:39:4412
2015-10-01 17:31:510
2015-10-01 17:30:170
2015-10-01 17:23:410
2015-10-01 17:22:250
2015-10-01 17:21:460
Task:Osajono
Sender:as
Submission time:2015-10-01 18:31:20
Language:Python2
Status:READY
Score:0

Feedback

groupverdictscore
#1WRONG ANSWER0
#2WRONG ANSWER0
#3WRONG ANSWER0

Test results

testverdicttime (s)group
#1WRONG ANSWER0.05 / 1.001details
#2WRONG ANSWER0.06 / 1.001details
#3WRONG ANSWER0.06 / 1.001details
#4WRONG ANSWER0.06 / 1.001details
#5WRONG ANSWER0.06 / 1.001details
#6WRONG ANSWER0.06 / 1.002details
#7WRONG ANSWER0.05 / 1.002details
#8WRONG ANSWER0.06 / 1.002details
#9WRONG ANSWER0.06 / 1.002details
#10WRONG ANSWER0.05 / 1.002details
#11WRONG ANSWER0.05 / 1.003details
#12WRONG ANSWER0.06 / 1.003details
#13WRONG ANSWER0.05 / 1.003details
#14WRONG ANSWER0.06 / 1.003details
#15WRONG ANSWER0.05 / 1.003details

Code

#Teht. 1 - Osajono

def osajono(jono):
    total = 0
    letterdict = {'A': 0, 'B': 0, 'C': 0, 'D': 0, 'E': 0, 'F': 0, 'G': 0, 'H': 0,
                  'I': 0, 'J': 0, 'K': 0, 'L': 0, 'M': 0, 'N': 0, 'O': 0, 'P': 0,
                  'Q': 0, 'R': 0, 'S': 0, 'T': 0, 'U': 0, 'V': 0, 'W': 0, 'X': 0,
                  'Y': 0, 'Z': 0}
    for k in jono:
        letterdict[k] += 1
    for m in letterdict.values():
        m = ((m + 1) * m) / 2
        total += m
    print letterdict.values()
    return total


jono = raw_input()
print int(osajono(jono))
    
    
    

Test details

Test 1

Group: 1

Verdict: WRONG ANSWER

input
BBBAABBBAAAABBAAAABAABAABBBBBB...
view   save

correct output
2554

view   save

user output
[48, 0, 52, 0, 0, 0, 0, 0, 0, ...
view   save

Test 2

Group: 1

Verdict: WRONG ANSWER

input
GDFVYWQCZAFGICSXOSWBZMGPDBSSVL...
view   save

correct output
299

view   save

user output
[2, 4, 2, 4, 5, 3, 6, 4, 3, 3,...
view   save

Test 3

Group: 1

Verdict: WRONG ANSWER

input
AAAAAAAAAAAAAAAAAAAAAAAAAZAAAA...
view   save

correct output
4314

view   save

user output
[92, 0, 0, 0, 0, 0, 0, 0, 0, 0...
view   save

Test 4

Group: 1

Verdict: WRONG ANSWER

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
4231

view   save

user output
[91, 0, 0, 0, 0, 0, 0, 0, 0, 0...
view   save

Test 5

Group: 1

Verdict: WRONG ANSWER

input
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...
view   save

correct output
5050

view   save

user output
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
view   save

Test 6

Group: 2

Verdict: WRONG ANSWER

input
BBABABBBABBAABBABBABAABAAABABA...
view   save

correct output
6253029

view   save

user output
[2477, 0, 2523, 0, 0, 0, 0, 0,...
view   save

Test 7

Group: 2

Verdict: WRONG ANSWER

input
RBKJMLDVQMKHYKCNDIVVKOMFUXTFMG...
view   save

correct output
485173

view   save

user output
[205, 208, 199, 182, 186, 176,...
view   save

Test 8

Group: 2

Verdict: WRONG ANSWER

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
12427725

view   save

user output
[4985, 0, 0, 0, 0, 0, 0, 0, 0,...
view   save

Test 9

Group: 2

Verdict: WRONG ANSWER

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
12467549

view   save

user output
[4993, 0, 0, 0, 0, 0, 0, 0, 0,...
view   save

Test 10

Group: 2

Verdict: WRONG ANSWER

input
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...
view   save

correct output
12502500

view   save

user output
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
view   save

Test 11

Group: 3

Verdict: WRONG ANSWER

input
BAAAAABABBABAABAABABABBBABBAAB...
view   save

correct output
2500051369

view   save

user output
[50037, 0, 49963, 0, 0, 0, 0, ...
view   save

Test 12

Group: 3

Verdict: WRONG ANSWER

input
ABBURXDRVXAYBPXXOQZNYHLWGUEEWR...
view   save

correct output
192407124

view   save

user output
[3818, 3895, 3738, 3849, 3812,...
view   save

Test 13

Group: 3

Verdict: WRONG ANSWER

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
4998050400

view   save

user output
[99980, 0, 0, 0, 0, 0, 0, 0, 0...
view   save

Test 14

Group: 3

Verdict: WRONG ANSWER

input
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
view   save

correct output
4998850144

view   save

user output
[99988, 0, 0, 0, 0, 0, 0, 0, 0...
view   save

Test 15

Group: 3

Verdict: WRONG ANSWER

input
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ...
view   save

correct output
5000050000

view   save

user output
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
view   save