Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
470
|
Surprise Language Round 7 |
FINISHED |
False |
7200 |
321200999 |
Sept. 13, 2014, 3:30 p.m. |
Problems
B"Caesar cipher is one of the simplest encryption techniques. To transform the original message into encrypted one using key k, one has to replace each letter with a letter which is k positions later in the alphabet (if this takes the position beyond Z, the rest of it is counted from the start of the alphabet). In a more formal way, if letters of the alphabet are enumerated starting with 0, the result of encryption for character x will be (26 is the number of letters in the Latin alphabet). You are given the original message and the encryption key k. Output the result of encryption. The first line of input contains an integer k (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8925) -- the encryption key. The second line contains the original message -- a sequence of uppercase Latin letters ('A'-'Z'). The length of the message is from 1 to 10, inclusive. Output the result of encryption."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
49482131 |
yongwhan |
D |
Feb. 5, 2019, 12:09 a.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
19138256 |
DATASOURCE |
D |
July 15, 2016, 12:20 a.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
18516675 |
TooNewbie |
D |
June 16, 2016, 9:17 a.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
18507810 |
I_Need_Alex_R_Coleman |
D |
June 15, 2016, 10:30 p.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
15721482 |
cugel |
D |
Jan. 31, 2016, 11:20 p.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
13925948 |
130705009 |
D |
Oct. 29, 2015, 3:11 a.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
11510681 |
rxdoi |
D |
June 9, 2015, 1:38 p.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
10501404 |
Empress |
D |
March 28, 2015, 2:28 p.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
10155791 |
xxxyyyzzz |
D |
March 5, 2015, 3:30 a.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
8050522 |
WARenie |
D |
Oct. 1, 2014, 6:37 p.m. |
OK |
FALSE |
TESTS |
35 |
15 |
0 |
|
2200 |
remove filters
Back to search problems