Submission #13342787


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

K = int(readline())
S = read().rstrip().decode()

if len(S) <= K:
    print(S)
else:
    print(S[:K] + '...')

Submission Info

Submission Time
Task B - ... (Triple Dots)
User maspy
Language Python (3.8.2)
Score 200
Code Size 239 Byte
Status
Exec Time 22 ms
Memory 9040 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
Subtask1 200 / 200 sample_01.txt, sample_02.txt, sub1_01.txt, sub1_02.txt, sub1_03.txt, sub1_04.txt, sub1_05.txt, sub1_06.txt, sub1_07.txt, sub1_08.txt, sub1_09.txt, sub1_10.txt, sub1_11.txt, sub1_12.txt, sub1_13.txt
Case Name Status Exec Time Memory
sample_01.txt 19 ms 8944 KB
sample_02.txt 16 ms 9040 KB
sub1_01.txt 16 ms 8816 KB
sub1_02.txt 19 ms 8920 KB
sub1_03.txt 16 ms 8920 KB
sub1_04.txt 18 ms 8948 KB
sub1_05.txt 17 ms 9028 KB
sub1_06.txt 18 ms 8920 KB
sub1_07.txt 18 ms 8916 KB
sub1_08.txt 17 ms 8816 KB
sub1_09.txt 19 ms 8816 KB
sub1_10.txt 19 ms 9028 KB
sub1_11.txt 17 ms 8816 KB
sub1_12.txt 19 ms 9040 KB
sub1_13.txt 22 ms 8948 KB