Created
May 18, 2020 00:00
-
-
Save monhime/fb15558da5165780c7f6b337cfa86c37 to your computer and use it in GitHub Desktop.
ABC168 B問題 解答
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment