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 AC
Exec Time 22 ms
Memory 9040 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 15
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
Subtask1 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 AC 19 ms 8944 KB
sample_02.txt AC 16 ms 9040 KB
sub1_01.txt AC 16 ms 8816 KB
sub1_02.txt AC 19 ms 8920 KB
sub1_03.txt AC 16 ms 8920 KB
sub1_04.txt AC 18 ms 8948 KB
sub1_05.txt AC 17 ms 9028 KB
sub1_06.txt AC 18 ms 8920 KB
sub1_07.txt AC 18 ms 8916 KB
sub1_08.txt AC 17 ms 8816 KB
sub1_09.txt AC 19 ms 8816 KB
sub1_10.txt AC 19 ms 9028 KB
sub1_11.txt AC 17 ms 8816 KB
sub1_12.txt AC 19 ms 9040 KB
sub1_13.txt AC 22 ms 8948 KB