Submission #13295194


Source Code Expand

Copy
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    k=int(input())
    s=input()
    if len(s)<=k:print(s)
    else:
        print(s[:k]+"...")

if __name__=='__main__':
    main()

Submission Info

Submission Time
Task B - ... (Triple Dots)
User charter
Language Python (3.8.2)
Score 200
Code Size 215 Byte
Status
Exec Time 21 ms
Memory 9088 KB

Judge Result

Set Name Sample Subtask1
Score / Max Score 0 / 0 200 / 200
Status
× 2
× 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 18 ms 8856 KB
sample_02.txt 21 ms 9016 KB
sub1_01.txt 19 ms 9020 KB
sub1_02.txt 21 ms 9024 KB
sub1_03.txt 19 ms 9016 KB
sub1_04.txt 18 ms 8968 KB
sub1_05.txt 21 ms 8872 KB
sub1_06.txt 18 ms 9012 KB
sub1_07.txt 18 ms 8960 KB
sub1_08.txt 18 ms 8964 KB
sub1_09.txt 18 ms 9020 KB
sub1_10.txt 20 ms 8864 KB
sub1_11.txt 21 ms 9088 KB
sub1_12.txt 21 ms 8976 KB
sub1_13.txt 17 ms 8864 KB