Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02676
n=int(input()) s=(input()) l=len(s) if n<=l: print(s) else: print(s[0:n]+"...")
n=int(input()) s=(input()) l=len(s) if n>=l: print(s) else: print(s[0:n]+"...")
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,001
396,002
u387610588
python
p02676
n=int(input()) s=(input()) l=len(s) if n==s: print(s) else: print(s[0:n]+"...")
n=int(input()) s=(input()) l=len(s) if n>=l: print(s) else: print(s[0:n]+"...")
[]
396,004
396,002
u387610588
python
p02676
K = int(input()) S = input() ls = list(S) if len(S) >= K: ansl = ls[0:K] print(''.join(ansl) + '...') else: print(S)
K = int(input()) S = input() ls = list(S) if len(S) > K: ansl = ls[0:K] print(''.join(ansl) + '...') else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,007
396,008
u699944218
python
p02676
# print('input >>') K = int(input()) S = input() if len(S) < K: print(S) else: print(S[:K] + '...') # print('-----output-----')
# print('input >>') K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K] + '...') # print('-----output-----')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,025
396,026
u657994700
python
p02676
k= int(input()) s= input() if len(s)<k: print(s) else: s=s[0:k] print(s+"...")
k= int(input()) s= input() if len(s)<=k: print(s) else: s=s[0:k] print(s+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,027
396,028
u958820283
python
p02676
import math #def main(S, b): if __name__ == '__main__': #a, b, c, k = map(int, input().split()) k = int(input()) n = input() #print(n[-1]) if (len(n) < k): print(n) else: print(n[:k] + "...") # if (s == t[:(len(s))] and len(t) == len(s) + 1): # print("Yes") # el...
import math #def main(S, b): if __name__ == '__main__': #a, b, c, k = map(int, input().split()) k = int(input()) n = input() #print(n[-1]) if (len(n) <= k): print(n) else: print(n[:k] + "...") # if (s == t[:(len(s))] and len(t) == len(s) + 1): # print("Yes") # e...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,050
396,051
u442810826
python
p02676
import os def main(): k = int(input()) s = input() ans = "" if (len(s) <= k): print(s) else: ans = s[:7] + "..." print(ans) if __name__ == "__main__": main()
import os def main(): k = int(input()) s = input() ans = "" if (len(s) <= k): print(s) else: ans = s[:k] + "..." print(ans) if __name__ == "__main__": main()
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
396,052
396,053
u928758473
python
p02676
k = int(input()) s = input() #print(n[len(n) - 1]) if len(s) < k: print(s) else: print(s[:k] + '...')
k = int(input()) s = input() #print(n[len(n) - 1]) if len(s) <= k: print(s) else: print(s[:k] + '...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,066
396,067
u123849536
python
p02676
N = int(input()) M = str(input()) if len(M)>N: print(M[0:7]+'...') else: print(M)
N = int(input()) M = str(input()) if len(M)>N: print(M[0:N]+'...') else: print(M)
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,072
396,073
u519922200
python
p02676
N = int(input()) M = str(input()) if len(N)>7: print(M[0:7]+'...') else: print(M)
N = int(input()) M = str(input()) if len(M)>N: print(M[0:N]+'...') else: print(M)
[ "identifier.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,075
396,073
u519922200
python
p02676
K = int(input()) S = str(input()) if len(S) < K: print(S) else: print(S[0:K]+"...")
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[0:K]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,079
396,080
u209911545
python
p02676
k = int(input()) s = input() w = len(s) if w <= k: print(s) else: ans = s[0:k-1] print('%s...' % ans)
k = int(input()) s = input() w = len(s) if w <= k: print(s) else: ans = s[0:k] print('%s...' % ans)
[ "expression.operation.binary.remove" ]
396,087
396,088
u110311725
python
p02676
k = int(input()) s = input() w = len(s) if w <= k: print(s) else: ans = s[1:k] print('%s...' % ans)
k = int(input()) s = input() w = len(s) if w <= k: print(s) else: ans = s[0:k] print('%s...' % ans)
[ "literal.number.integer.change", "assignment.value.change", "variable_access.subscript.index.change" ]
396,089
396,088
u110311725
python
p02676
k = int(input()) s = input() print(s if len(s) < k else s[0:k] + '...')
k = int(input()) s = input() print(s if len(s) <= k else s[0:k] + '...')
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
396,096
396,097
u393881437
python
p02676
n= int(input()) L = list(input()) if len(L)<n: print(''.join(L)) else: print(''.join(L[:n])+'...')
n= int(input()) L = list(input()) if n>=len(L): print(''.join(L)) else: print(''.join(L[:n])+'...')
[ "control_flow.branch.if.condition.change" ]
396,100
396,101
u886459614
python
p02676
K = int(input()) S = input() if len(S) < K: print(S) else: print(S[:K], end="") print("...")
K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K], end="") print("...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,104
396,105
u501451051
python
p02676
k = int(input()) s = str(input()) n = len(s) if n <= k: print(s) else: print(s[0:k+1] + "...")
k = int(input()) s = str(input()) n = len(s) if n <= k: print(s) else: print(s[0:k] + "...")
[ "expression.operation.binary.remove" ]
396,110
396,111
u865119809
python
p02676
k = int(input()); s = input(); n = int(len(s)); a = '…' if k >= n: print(s); else: print(s[:k] + a);
k = int(input()); s = input(); n = int(len(s)); a = '...' if k >= n: print(s); else: print(s[:k] + a);
[ "literal.string.change", "assignment.value.change" ]
396,113
396,114
u158380546
python
p02676
k = int(input()) s = input() if len(s) > k: print(s[0:7] + "...") else: print(s)
k = int(input()) s = input() if len(s) > k: print(s[0:k] + "...") else: print(s)
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,119
396,120
u766565683
python
p02676
k = int(input()) s = input() if len(s) >= k: print(s[0:7] + "...") else: print(s)
k = int(input()) s = input() if len(s) > k: print(s[0:k] + "...") else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,121
396,120
u766565683
python
p02676
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[:K]+'…')
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[:K]+'...')
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,138
396,139
u111559399
python
p02676
K=int(input()) S=input() if K>=len(S): print(S) else: mae=S[0:len(S)-1] ans=mae + "..." print(ans)
K=int(input()) S=input() if K>=len(S): print(S) else: mae=S[0:K] ans=mae+"..." print(ans)
[ "assignment.value.change", "variable_access.subscript.index.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
396,150
396,151
u632609425
python
p02676
K = int(input()) S = input() K = min(len(S), K) for i in range(K): print(S[i], end='') print('...' if K > len(S) else '')
K = int(input()) S = input() K = min(len(S), K) for i in range(K): print(S[i], end='') print('...' if K < len(S) else '')
[ "misc.opposites", "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
396,152
396,153
u764401543
python
p02676
n = int(input()) s = str(input()) if len(s) <= n: print(s) else: print(s[:n+1]+"...")
n = int(input()) s = str(input()) if len(s) <= n: print(s) else: print(s[:n]+"...")
[ "expression.operation.binary.remove" ]
396,162
396,163
u667024514
python
p02676
n = int(input()) s = str(input()) if len(s) <= n: print(s) else: print(s[:k+1]+"...")
n = int(input()) s = str(input()) if len(s) <= n: print(s) else: print(s[:n]+"...")
[ "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "expression.operation.binary.remove" ]
396,164
396,163
u667024514
python
p02676
k = int(input()) S = input() s = list(S) if len(s) < k: print(S) else: print(S[0:k] + "...")
k = int(input()) S = input() s = list(S) if len(s) <= k: print(S) else: print(S[0:k] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,173
396,174
u569117803
python
p02676
def main(): k = int(input()) s = str(input()) w = len(s) if w<k: print(s) else: print(s[:k] + '...') main()
def main(): k = int(input()) s = str(input()) w = len(s) if w<=k: print(s) else: print(s[:k] + '...') main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,182
396,183
u569479281
python
p02676
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys def input(): return sys.stdin.readline() def resolve(): k = int(input()) s = input() if k > len(s): print(s) else: print(s[:k] + "...") if __name__ == "__main__": resolve()
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys def input(): return sys.stdin.readline() def resolve(): k = int(input()) s = input().rstrip() if k >= len(s): print(s) else: print(s[:k] + "...") if __name__ == "__main__": resolve()
[ "call.add", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,195
396,196
u458388104
python
p02676
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys def input(): return sys.stdin.readline() def resolve(): k = int(input()) s = input() if k >= len(s): print(s) else: print(s[:k] + "...") if __name__ == "__main__": resolve()
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys def input(): return sys.stdin.readline() def resolve(): k = int(input()) s = input().rstrip() if k >= len(s): print(s) else: print(s[:k] + "...") if __name__ == "__main__": resolve()
[ "call.add" ]
396,197
396,196
u458388104
python
p02676
k=int(input()) s=input() t=len(list(s)) print(t) n="" if(t<=k): print(s) else: for i in range(k): n=n+s[i] n=n+"..." print(n)
k=int(input()) s=input() t=len(list(s)) #print(t) n="" if(t<=k): print(s) else: for i in range(k): n=n+s[i] n=n+"..." print(n)
[ "call.remove" ]
396,198
396,199
u339654163
python
p02676
k = int(input()) s = list(map(str, input())) if len(s) > k: for i in range(k): print(s[i], end="") print("...") else: for i in s: print(s[i], end='') print()
k = int(input()) s = list(map(str, input())) if len(s) > k: for i in range(k): print(s[i], end="") print("...") else: for i in s: print(i, end='') print()
[ "call.arguments.change" ]
396,202
396,203
u020801333
python
p02676
k=int(input()) s=input() if k<=len(s): print(s[:k] +'...') else: print(s)
k=int(input()) s=input() if k<len(s): print(s[:k] +'...') else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,204
396,205
u815559330
python
p02676
#-*- utf-8 -*- k = int(input()) s = list(input()) rslt = "" for index in range(k): if len(s) > index: break rslt += s[index] if len(s) > k: rslt += "..." print(rslt, flush=True)
#-*- utf-8 -*- k = int(input()) s = list(input()) rslt = "" for index in range(k): if len(s) <= index: break rslt += s[index] if len(s) > k: rslt += "..." print(rslt, flush=True)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,206
396,207
u152376097
python
p02676
#------------------------------warmup---------------------------- import os import sys from io import BytesIO, IOBase import math BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in fi...
#------------------------------warmup---------------------------- import os import sys from io import BytesIO, IOBase import math BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in fi...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,214
396,215
u260291412
python
p02676
#------------------------------warmup---------------------------- import os import sys from io import BytesIO, IOBase import math BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in fi...
#------------------------------warmup---------------------------- import os import sys from io import BytesIO, IOBase import math BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() self.buffer = BytesIO() self.writable = "x" in fi...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
396,216
396,215
u260291412
python
p02676
K = int(input()) S = input() if len(S) < K: print(S) else: print(S[:K]+'...')
K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,225
396,226
u630511239
python
p02676
k=int(input()) s=str(input()) if len(s) <=k: print(s) else: print(s[0:k],'...')
k=int(input()) s=str(input()) if len(s) <=k: print(s) else: c=s[0:k]+ '...' print(c)
[ "assignment.value.change", "call.arguments.change", "io.output.change", "call.add" ]
396,230
396,231
u434966508
python
p02676
k=int(input()) s=input() if len(s)<=k:print(s) else:print(s[:k+1],end="...")
k=int(input()) s=input() if len(s)<=k:print(s) else:print(s[:k],end="...")
[ "expression.operation.binary.remove" ]
396,240
396,241
u172147273
python
p02676
k = int(input()) s = input() if len(s) > k: print(s[:7] + "...") else: print(s)
k = int(input()) s = input() if len(s) > k: print(s[:k] + "...") else: print(s)
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,248
396,249
u952968889
python
p02676
import sys def II(): return int(input()) def MI(): return map(int,input().split()) def LI(): return list(map(int,input().split())) def TI(): return tuple(map(int,input().split())) def RN(N): return [input().strip() for i in range(N)] def main(): K = II() S = input() Sl = len(S) print(Sl) if Sl <=...
import sys def II(): return int(input()) def MI(): return map(int,input().split()) def LI(): return list(map(int,input().split())) def TI(): return tuple(map(int,input().split())) def RN(N): return [input().strip() for i in range(N)] def main(): K = II() S = input() Sl = len(S) if Sl <= K: pr...
[ "call.remove" ]
396,252
396,253
u735091636
python
p02676
k = int(input()) s = input() if k <= len(s): s = s[0:k] + "..." print(s)
k = int(input()) s = input() if k < len(s): s = s[0:k] + "..." print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,260
396,261
u513858037
python
p02676
k = int(input()) s = input() ls = len(s) if ls <=k: print(s) else: print(s+'...')
k = int(input()) s = input() ls = len(s) if ls <=k: print(s) else: print(s[:k]+'...')
[]
396,270
396,271
u257856080
python
p02676
K = int(input()) S = str(input()) if K > len(S): print(S) else: print(S[:K]+"...")
K = int(input()) S = str(input()) if K >= len(S): print(S) else: print(S[:K]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,278
396,279
u892006633
python
p02676
K = int(input()) S = input() if K >= len(S): print(S) else: print(S[0:7],end="") print("...")
K = int(input()) S = input() if K >= len(S): print(S) else: print(S[0:K],end="") print("...")
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
396,296
396,297
u166366686
python
p02676
#!/usr/bin/env python # -*- coding: utf-8 -*- # # FileName: B # CreatedDate: 2020-05-17 21:05:31 +0900 # LastModified: 2020-05-17 21:07:49 +0900 # import os import sys #import numpy as np #import pandas as pd def main(): k = int(input()) s = input() if k<len(s): print("{}...".format(s[:7])) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # FileName: B # CreatedDate: 2020-05-17 21:05:31 +0900 # LastModified: 2020-05-17 21:12:00 +0900 # import os import sys #import numpy as np #import pandas as pd def main(): k = int(input()) s = input() if k<len(s): print("{}...".format(s[:k])) ...
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
396,315
396,316
u326552320
python
p02676
K = int(input()) S = input() ans= S if len(S) > K: ans = S[0:K+1] + "..." print(ans)
K = int(input()) S = input() ans= S if len(S) > K: ans = S[0:K] + "..." print(ans)
[ "expression.operation.binary.remove" ]
396,323
396,324
u425236751
python
p02676
from sys import stdin K = int(inpu()) S = input() if len(S) <= K: print(S) else: print(S[:K],'...',sep='')
from sys import stdin K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K],'...',sep='')
[ "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change" ]
396,327
396,328
u543489264
python
p02676
strLen = int(input()) str = input() if len(str) <= strLen: print(str) else: print(str[0:7] + "...")
strLen = int(input()) str = input() if len(str) <= strLen: print(str) else: print(str[0:strLen] + "...")
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,331
396,332
u890973451
python
p02676
k = int(input()) s = str(input()) if k > len(s): print(s) else: print('{st}...'.format(st=s[0:k]))
k = int(input()) s = str(input()) if k+1 > len(s): print(s) else: print('{st}...'.format(st=s[0:k]))
[ "control_flow.branch.if.condition.change" ]
396,333
396,334
u334314337
python
p02676
k=int(input()) s=str(input()) if k>len(s): print(s) else: print(s[0:k]+'...')
k=int(input()) s=str(input()) if k>=len(s): print(s) else: print(s[0:k]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,341
396,342
u562662744
python
p02676
import numpy,math n = int(input()) s = str(input()) if(len(s) <= n): print(s) else: print(s[:n+1 + "..."])
import numpy,math n = int(input()) s = str(input()) if(len(s) <= n): print(s) else: print(s[:n] + "...")
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,346
396,347
u840964147
python
p02676
n=int(input()) s=input() if len(s)==n: print(s) else: print(s[:n],end='') print('...')
n=int(input()) s=input() if len(s)<=n: print(s) else: print(s[:n],end='') print('...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,352
396,353
u264505326
python
p02676
K = int(input()) S = input() print(S if len(S) < K else S[:K] + "...")
K = int(input()) S = input() print(S if len(S) <= K else S[:K] + "...")
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
396,370
396,371
u343021464
python
p02676
k = int(input()) s = input() print(s if len(s) <= k else "{}...".format(s[:7]))
k = int(input()) s = input() print(s if len(s) <= k else "{}...".format(s[:k]))
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
396,372
396,373
u813387707
python
p02676
k = int(input()) s = input() if len(s) < k: print(s) else: s = s[0:k] s = s+"..." print(s)
k = int(input()) s = input() if len(s) <= k: print(s) else: s = s[0:k] s = s+"..." print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,374
396,375
u677163137
python
p02676
k = int(input()) s = input() if len(s) < k: print(s) else: s = s[0:k] print(s+"...")
k = int(input()) s = input() if len(s) <= k: print(s) else: s = s[0:k] s = s+"..." print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.add" ]
396,376
396,375
u677163137
python
p02676
k = int(input()) s = str(input()) if len(s) < k: print(s) else: print(s[0:k] + '...')
k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print(s[0:k] + '...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,377
396,378
u653699456
python
p02676
k = int(input()) s = input() l = len(s) S = s[:k] if l >= k: print(S+'...') else: print(s)
k = int(input()) s = input() l = len(s) S = s[:k] if l > k: print(S+'...') else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,413
396,414
u849229491
python
p02676
k = int(input()) s_num = input() s = list(s_num) if len(s) < k: ans = s_num else: ans = s_num[0:k] + "..." print(ans)
k = int(input()) s_num = input() s = list(s_num) if len(s) <= k: ans = s_num else: ans = s_num[0:k] + "..." print(ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,415
396,416
u515052479
python
p02676
import numpy as np import itertools K = int(input()) S = input() if K > len(S): print(S) else: print(S[:K], end='') print("...")
import numpy as np import itertools K = int(input()) S = input() if K >= len(S): print(S) else: print(S[:K], end='') print("...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,417
396,418
u542541293
python
p02676
k=int(input()) s=input() print(S[:K]) if len(S) <= K else print(S[:K] + "...")
K=int(input()) S=input() print(S[:K]) if len(S) <= K else print(S[:K] + "...")
[ "assignment.variable.change", "identifier.change" ]
396,436
396,437
u498699271
python
p02676
def main(): K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[0:7]+"...") #a = list(map(int, input().split())) #print(a) if __name__ == '__main__': main()
def main(): K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[0:K]+"...") #a = list(map(int, input().split())) #print(a) if __name__ == '__main__': main()
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,442
396,443
u798543098
python
p02676
k=int(input()) s=input() n=len(s) if s<=k: print(s) else: print(s[:k]+'...')
k=int(input()) s=input() n=len(s) if n<=k: print(s) else: print(s[:k]+'...')
[ "identifier.change", "control_flow.branch.if.condition.change" ]
396,451
396,452
u201986772
python
p02676
K = int(input()) S = input() N = len(S) if N < K: print(S) else: print(S[0:K], end='') print('...')
K = int(input()) S = input() N = len(S) if N <= K: print(S) else: print(S[0:K], end='') print('...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,463
396,464
u591812989
python
p02676
n=int(input()) s=input() if len(s) < n: print(s) else: s=s[:n] s += '...' print(s)
n=int(input()) s=input() if len(s) <= n: print(s) else: s=s[:n] s += '...' print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,492
396,493
u258184297
python
p02676
k = int(input()) s = str(input()) #k = 7 #s = 'nikoandsolstice' if len(s) > k: print(s[:k] , '...') else : print(s)
k = int(input()) s = str(input()) #k = 7 #s = 'nikoandsolstice' if len(s) > k: temp = s[:k] + '...' print(temp) else : print(s)
[ "assignment.value.change", "call.arguments.change", "io.output.change", "call.add" ]
396,494
396,495
u014268998
python
p02676
def solve(): K = int(input()) S = input() if len(S) < K: print(S) exit() for i in range(K): print(S[i], end="") print('...') solve()
def solve(): K = int(input()) S = input() if len(S) <= K: print(S) exit() for i in range(K): print(S[i], end="") print('...') solve()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,496
396,497
u215334265
python
p02676
K=int(input()) S=input() if K>=len(S): print(S) else: print(S[0:7]+str("..."))
K=int(input()) S=input() if K>=len(S): print(S) else: print(S[0:K]+str("..."))
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,521
396,522
u722122988
python
p02676
def main(): k = int(input()) s = input() val = len(s)-k if val > 0: print(s[:k]+'...') if __name__ == '__main__': main()
def main(): k = int(input()) s = input() val = len(s)-k if val > 0: print(s[:k] + '...') else: print(s) if __name__ == '__main__': main()
[ "call.add" ]
396,523
396,524
u966891144
python
p02676
K = input() S = input() K = int(K) if len(S) < K: print(S) else: print(S[:K] + "...")
K = input() S = input() K = int(K) if len(S) <= K: print(S) else: a = S[:K] + "..." print(a)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.add" ]
396,529
396,528
u553308611
python
p02676
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: n=s[0:k] print(n)
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: n=s[0:k] print(n+'...')
[ "expression.operation.binary.add" ]
396,530
396,531
u726154863
python
p02676
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[:7] + '...')
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[:K] + '...')
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,540
396,541
u212328220
python
p02676
k = int(input()) s = str(input()) if len(s) == k: print(s) else: print(s[:k] + "...")
k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print(s[:k] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,542
396,543
u388532391
python
p02676
k = int(input()) s = input() if (k > len(s)): print(s) else: kotae = [] for i in range(k): kotae.append(s[i]) kotae.append("...") kotae2 = "".join(kotae) print(kotae2)
k = int(input()) s = input() if (k >= len(s)): print(s) else: kotae = [] for i in range(k): kotae.append(s[i]) kotae.append("...") kotae2 = "".join(kotae) print(kotae2)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,548
396,549
u740260565
python
p02676
#import numpy as np #a,b,c=map(int,input().split()) z=int(input()) a=input() if len(a)>z: b=a[:z] print(b+"...") else: print(b)
#import numpy as np #a,b,c=map(int,input().split()) z=int(input()) a=input() if len(a)>z: b=a[:z] print(b+"...") else: print(a)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
396,550
396,551
u108898293
python
p02676
#import numpy as np #a,b,c=map(int,input().split()) z=int(input()) a=input() if len(a)>z: b=a[:7] print(b+"...") else: print(a)
#import numpy as np #a,b,c=map(int,input().split()) z=int(input()) a=input() if len(a)>z: b=a[:z] print(b+"...") else: print(a)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change" ]
396,552
396,551
u108898293
python
p02676
# ABC168 B ... (Triple Dots) k = int(input()) s = input() if len(s) < k: print(s) else: print(s[:k]+"...")
# ABC168 B ... (Triple Dots) k = int(input()) s = input() if len(s) <= k: print(s) else: print(s[:k]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,555
396,556
u001769145
python
p02676
n=int(input()) s=input() l=len(s); if l<=n: print(s) else: print(s[0:l-n-1]+"...");
n=int(input()) s=input() l=len(s); if l<=n: print(s) else: print(s[0:n]+"...");
[ "expression.operation.binary.remove" ]
396,559
396,560
u427698913
python
p02676
k = int(input()) s = list(input()) if len(s) < k: ans = ''.join(s) else: ans = ''.join(s[0:k])+"..." print(ans)
k = int(input()) s = list(input()) if len(s) <= k: ans = ''.join(s) else: ans = ''.join(s[0:k])+"..." print(ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,567
396,568
u460009487
python
p02676
k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print(s[:7]+'...')
k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print(s[:k]+'...')
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
396,569
396,570
u678505520
python
p02676
k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print(s[:7],'...')
k = int(input()) s = str(input()) if len(s) <= k: print(s) else: print(s[:k]+'...')
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "io.output.change" ]
396,572
396,570
u678505520
python
p02676
a=int(input()) b=input() if len(b)>=a: print(b[:a]+'...') else: print(b)
a=int(input()) b=input() if len(b)>a: print(b[:a]+'...') else: print(b)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,573
396,574
u927870520
python
p02676
k=int(input()) s=input() if(len(s)>k): result=s[:7]+'...' print(result) else: print(s)
k=int(input()) s=input() if(len(s)>k): result=s[:k]+'...' print(result) else: print(s)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
396,595
396,596
u590926526
python
p02676
K = int(input()) S = str(input()) if len(S) == K: print(K) if len(S) > K: print(S[:K]+"...")
K = int(input()) S = str(input()) if len(S) <= K: print(S) if len(S) > K: print(S[:K]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "identifier.change", "call.arguments.change", "io.output.change" ]
396,605
396,606
u718765445
python
p02676
k = int(input()) s = input() if( len(s) <= k): print(s) else: res = s[0:7] + "..." print(res)
k = int(input()) s = input() if( len(s) <= k): print(s) else: res = s[0:k] + "..." print(res)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
396,607
396,608
u167360450
python
p02676
k = int(input()) n = str(input()) if len(n) <= k: print(n) else: print(n[:k])
k = int(input()) n = str(input()) if len(n) <= k: print(n) else: print(n[:k]+'...')
[ "expression.operation.binary.add" ]
396,615
396,616
u071868443
python
p02676
K=int(input()) S=str(input()) if K<=len(S): print(S[:K]+"...") else: print(S)
K=int(input()) S=str(input()) if K<len(S): print(S[:K]+"...") else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,625
396,626
u387080888
python
p02676
K=int(input()) S=input() if len(S) >=K: res=S[:K] res+="..." print(res) else: print(S)
K=int(input()) S=input() if len(S) >K: res=S[:K] res+="..." print(res) else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,653
396,654
u765865533
python
p02676
from sys import stdin import math import fractions from collections import deque from collections import Counter import itertools readline = stdin.buffer.readline INF = 10 ** 10 K = int(readline()) S = str(input()) if len(S) < K: print(S) else: tmp = "".join([c for c in S[:K]]) print(tmp + "...")
from sys import stdin import math import fractions from collections import deque from collections import Counter import itertools readline = stdin.buffer.readline INF = 10 ** 10 K = int(readline()) S = str(input()) if len(S) <= K: print(S) else: tmp = "".join([c for c in S[:K]]) print(tmp + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,655
396,656
u979667682
python
p02676
K=int(input()) S=input() if K < len(S): print(S[0:K] + '...')
K=int(input()) S=input() if K < len(S): print(S[0:K] + '...') else: print(S)
[ "call.add" ]
396,657
396,658
u727980193
python
p02676
#!/usr/bin/env python3 import sys import collections sys.setrecursionlimit(10 ** 7) # 1 ✕ 1 (int) K = int(input().rstrip()) # 1 ✕ 1 (str) S = input().rstrip() if len(S) >= K: print(S[:K] + "...") else: print(S)
#!/usr/bin/env python3 import sys import collections sys.setrecursionlimit(10 ** 7) # 1 ✕ 1 (int) K = int(input().rstrip()) # 1 ✕ 1 (str) S = input().rstrip() if len(S) > K: print(S[:K] + "...") else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,673
396,674
u017723605
python
p02676
def main(K, S): if len(S) >= K: answer = S[:K] + '...' else: answer = S print(answer) if __name__ == '__main__': K = int(input()) S = input() main(K, S)
def main(K, S): if len(S) > K: answer = S[:K] + '...' else: answer = S print(answer) if __name__ == '__main__': K = int(input()) S = input() main(K, S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,689
396,690
u894521144
python
p02676
import math K = int(input()) S = str(input()) nagasa = len(S) P = '...' if nagasa < K: print(S) else: S = S[0:K]+P print(S)
import math K = int(input()) S = str(input()) nagasa = len(S) P = '...' if nagasa <= K: print(S) else: S = S[0:K]+P print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,695
396,696
u024340351
python
p02676
import numpy as np import sys import math K = int(input()) S = input() if len(S) <= K : print(S) else: print(S+"...")
import numpy as np import sys import math K = int(input()) S = input() if len(S) <= K : print(S) else: print(S[:K]+"...")
[]
396,699
396,700
u192042624
python
p02676
K=int(input()) S=list(input()) if len(S)<=K: print(*S,sep="") else: kari=S[:K] kari.append("…") print(*kari,sep="")
K=int(input()) S=list(input()) if len(S)<=K: print(*S,sep="") else: kari=S[:K] kari.append("...") print(*kari,sep="")
[ "literal.string.change", "call.arguments.change" ]
396,703
396,704
u671211357
python
p02676
k = int(input()) s = input() if len(s) <= k: print(S) else: t_s = s[:k] + "..." print(t_s)
k = int(input()) s = input() if len(s) <= k: print(s) else: t_s = s[:k] + "..." print(t_s)
[ "misc.typo", "identifier.change", "call.arguments.change", "io.output.change" ]
396,707
396,708
u018591138
python
p02676
k=int(input()) s=input() if len(s) < k: print(s) else: print(s[0:k] + "...")
k=int(input()) s=input() if len(s) <= k: print(s) else: print(s[0:k] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
396,709
396,710
u419633921
python
p02676
k=int(input()) s=str(input()) if len(s)<=k: print(s) else: print(s[:k],"...")
k=int(input()) s=str(input()) if len(s)<=k: print(s) else: a=s[:k]+"..." print(a)
[ "assignment.value.change", "call.arguments.change", "io.output.change", "call.add" ]
396,711
396,712
u758831502
python
p02676
n=int(input()) st=input() if n>=len(st): print(st) else: print(st[0:n-1]+"...")
n=int(input()) st=input() if n>=len(st): print(st) else: print(st[0:n]+"...")
[ "expression.operation.binary.remove" ]
396,751
396,752
u788452182
python
p02676
n=int(input()) st=input() if n>=len(st): print(st) else: print(st[0:n-1])
n=int(input()) st=input() if n>=len(st): print(st) else: print(st[0:n]+"...")
[ "expression.operation.binary.remove" ]
396,753
396,752
u788452182
python