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
K = int(input()) S = str(input().lower()) if len(S) <= K: print(S) elif len(S) > K: stol = list(S) stol[K-1] = "..." Cutlist = stol[0:K] LtoS = ''.join(map(str, Cutlist)) print(LtoS)
K = int(input()) S = str(input().lower()) if len(S) <= K: print(S) elif len(S) > K: stol = list(S) stol[K] = "..." Cutlist = stol[0:K+1] LtoS = ''.join(map(str, Cutlist)) print(LtoS)
[ "expression.operation.binary.remove" ]
395,365
395,366
u588048170
python
p02676
import sys input_methods=['clipboard','file','key'] using_method=0 input_method=input_methods[using_method] tin=lambda : map(int, input().split()) lin=lambda : list(IN()) mod=1000000007 #+++++ def main(): k = int(input()) #b , c = tin() s = input() if k > len(s): print(s) return ret = s[:k]+'...' print...
import sys input_methods=['clipboard','file','key'] using_method=0 input_method=input_methods[using_method] tin=lambda : map(int, input().split()) lin=lambda : list(IN()) mod=1000000007 #+++++ def main(): k = int(input()) #b , c = tin() s = input() if k >= len(s): print(s) return ret = s[:k]+'...' prin...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,371
395,372
u505830998
python
p02676
#n = int(input()) #a,b = map(int,input().split()) #a_L = list(map(int,input().split())) k = int(input()) s = list(input()) #print(len(s)) if len(s)+1 < k: print("".join(s)) else: t = "".join(s[:k]) + "..." print(t)
#n = int(input()) #a,b = map(int,input().split()) #a_L = list(map(int,input().split())) k = int(input()) s = list(input()) #print(len(s)) if len(s) <= k: print("".join(s)) else: t = "".join(s[:k]) + "..." print(t)
[ "control_flow.branch.if.condition.change" ]
395,381
395,382
u625255205
python
p02676
#n = int(input()) #a,b = map(int,input().split()) #a_L = list(map(int,input().split())) k = int(input()) s = list(input()) #print(len(s)) if len(s)+1 <= k: print("".join(s)) else: t = "".join(s[:k]) + "..." print(t)
#n = int(input()) #a,b = map(int,input().split()) #a_L = list(map(int,input().split())) k = int(input()) s = list(input()) #print(len(s)) if len(s) <= k: print("".join(s)) else: t = "".join(s[:k]) + "..." print(t)
[ "expression.operation.binary.remove" ]
395,383
395,382
u625255205
python
p02676
#n = int(input()) #a,b = map(int,input().split()) #a_L = list(map(int,input().split())) k = int(input()) s = list(input()) if len(s) == k: print("".join(s)) else: t = "".join(s[:k]) + "..." print(t)
#n = int(input()) #a,b = map(int,input().split()) #a_L = list(map(int,input().split())) k = int(input()) s = list(input()) #print(len(s)) if len(s) <= k: print("".join(s)) else: t = "".join(s[:k]) + "..." print(t)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,384
395,382
u625255205
python
p02676
k = int(input()) s = input() if len(s) <= k: print(s) else: print(str(s[:7]) + "...")
k = int(input()) s = input() if len(s) <= k: print(s) else: print(str(s[:k]) + "...")
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,391
395,392
u211277872
python
p02676
k = int(input()) s = input() if len(s) <= k: print("s") else: print(str(s[:7]) + "...")
k = int(input()) s = input() if len(s) <= k: print(s) else: print(str(s[:k]) + "...")
[ "call.arguments.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change", "io.output.change" ]
395,394
395,392
u211277872
python
p02676
from sys import stdin a=int(stdin.readline()) b=stdin.readline() if len(b)<=a: print(b) else: b=b[:a] b=b+'...' print(b)
from sys import stdin a=int(stdin.readline()) b=stdin.readline() if len(b)-1<=a: print(b) else: b=b[:a] b=b+'...' print(b)
[ "control_flow.branch.if.condition.change" ]
395,401
395,402
u987549444
python
p02676
k = int(input()) s = str(input()) if len(s)<=k: print(s) else: print(str(s[:7]+'...'))
k = int(input()) s = str(input()) if len(s)<=k: print(s) else: print(str(s[:k]+'...'))
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,411
395,412
u796044734
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(str(s[:k]+'...'))
[ "call.arguments.add", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,413
395,412
u796044734
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]+'...')
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,422
395,423
u656919695
python
p02676
K = int(input()) S = input() x = len(S) if x <= K: print(S) else: print(S[K - 1:] + '...')
K = int(input()) S = input() x = len(S) if x <= K: print(S) else: print(S[:K] + '...')
[ "expression.operation.binary.remove", "call.arguments.change" ]
395,426
395,427
u200228637
python
p02676
K = int(input()) S = input() x = len(S) if x <= K: print(S) else: print(S[K:])
K = int(input()) S = input() x = len(S) if x <= K: print(S) else: print(S[:K] + '...')
[ "call.arguments.change" ]
395,430
395,427
u200228637
python
p02676
N = int(input()) S = input() if len(S) < N: print(S) else: for i in range(N): print(S[i], end='') else: print("...")
N = int(input()) S = input() if len(S) <= N: print(S) else: for i in range(N): print(S[i], end='') else: print("...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,431
395,432
u612636296
python
p02676
N = int(input()) S = input() if len(S) < N: print(S + '...') else: for i in range(N): print(S[i], end='') else: print("...")
N = int(input()) S = input() if len(S) <= N: print(S) else: for i in range(N): print(S[i], end='') else: print("...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
395,433
395,432
u612636296
python
p02676
k=input() n=int(k) s=input() a=len(s) if a>=n: print(s[0:n] +"...") else: print(s)
k=input() n=int(k) s=input() a=len(s) if a>n: print(s[0:n] +"...") else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,436
395,437
u431860365
python
p02676
n=int(input()) l=input() if len(l)<=n: print(l) else: print(l[:n+1]+"...")
n=int(input()) l=input() if len(l)<=n: print(l) else: print(l[:n]+"...")
[ "expression.operation.binary.remove" ]
395,438
395,439
u123745130
python
p02676
k = int(input()) s = str(input()) d = len(s) b = s[0:k] + '...' if k <= d: print(b) else: print(s)
k = int(input()) s = str(input()) d = len(s) b = s[0:k] + '...' if k < d: print(b) else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,440
395,441
u329817560
python
p02676
k = int(input()) s = str(input()) d = len(s) f = s[0:k] b = f + '...' if k <= d: print(b) else: print(s)
k = int(input()) s = str(input()) d = len(s) b = s[0:k] + '...' if k < d: print(b) else: print(s)
[ "assignment.variable.change", "identifier.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,442
395,441
u329817560
python
p02676
k = int(input()) s = str(input()) d = len(s) f = s[0:7] b = f + '...' if k <= d: print(b) else: print(s)
k = int(input()) s = str(input()) d = len(s) b = s[0:k] + '...' if k < d: print(b) else: print(s)
[ "assignment.variable.change", "identifier.change", "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,443
395,441
u329817560
python
p02676
k = int(input()) s = str(input()) if int(len(s)) < k: print(s) else: print(s[:k],"...",sep="")
k = int(input()) s = str(input()) if int(len(s)) <= k: print(s) else: print(s[:k],"...",sep="")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,462
395,463
u594676818
python
p02676
K = int(input()) S = input() if len(S) > K: print(S[:-K-1] + '...') else: print(S)
K = int(input()) S = input() if len(S) > K: print(S[:K]+'...') else: print(S)
[ "expression.operation.unary.arithmetic.remove", "call.arguments.change", "expression.operation.binary.remove" ]
395,466
395,467
u517674755
python
p02676
K = int(input()) S = input() if len(S) > K: print(s[:k]+'...') else: print(S)
K = int(input()) S = input() if len(S) > K: print(S[:K]+'...') else: print(S)
[ "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "variable_access.subscript.index.change" ]
395,468
395,467
u517674755
python
p02676
K = int(input()) S = input() print(S[:len(S)-K]+'...' if len(S)>int(K) else S)
K = int(input()) S = input() print(S[:K]+'...' if len(S)>int(K) else S)
[ "expression.operation.binary.remove" ]
395,471
395,472
u594862874
python
p02676
K = int(input("K:")) S = str(input("S:")) s = len(S) if s <= K: print(S) else: print(S[:K] + "...")
K = int(input()) S = str(input()) s = len(S) if s <= K: print(S) else: print(S[:K] + "...")
[]
395,487
395,488
u282248252
python
p02676
K = int(input()) S = input() if len(S) <= K: print(S) else: S_ = S[0:K-1] print(S+'...')
K = int(input()) S = input() if len(S) <= K: print(S) else: S_ = S[0:K] print(S_+'...')
[ "expression.operation.binary.remove", "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,491
395,492
u920194937
python
p02676
n = int(input()) str = input() print(str) if len(str) <= n else print(str[:n + 1] + '...')
n = int(input()) str = input() print(str) if len(str) <= n else print(str[:n] + '...')
[ "expression.operation.binary.remove" ]
395,498
395,499
u633591853
python
p02676
K,S = input().split() K = int(K) if len(S) <= K: print(S) else: print(S[0:K]+"...")
K = input() S = input() K = int(K) if len(S) <= K: print(S) else: print(S[0:K]+"...")
[ "call.add", "call.remove" ]
395,502
395,503
u329937934
python
p02676
K = int(input()) S = input() tail_str = '' if K <= len(S): tail_str = '...' print('%s%s' % (S[:K], tail_str))
K = int(input()) S = input() tail_str = '' if K < len(S): tail_str = '...' print('%s%s' % (S[:K], tail_str))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,506
395,507
u232202715
python
p02676
k = int(input()) s = list(input()) if k>=len(s): print(s) else: for i in range (k): print(s[i],end="") print("...")
k = int(input()) s =input() if k>=len(s): print(s) else: for i in range (k): print(s[i],end="") print("...")
[ "call.remove", "call.arguments.change" ]
395,525
395,526
u320555665
python
p02676
k = input() s = input() print(s) if(len(s) <= int(k)): print(s) else: print(s[:int(k)]+'...')
k = input() s = input() if(len(s) <= int(k)): print(s) else: print(s[:int(k)]+'...')
[ "call.remove" ]
395,533
395,534
u792578588
python
p02676
k = input() s = input() if(len(s) <= int(k)): print(s) else: print(s[:int(k)])
k = input() s = input() if(len(s) <= int(k)): print(s) else: print(s[:int(k)]+'...')
[ "expression.operation.binary.add" ]
395,535
395,534
u792578588
python
p02676
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[0:7] + "...")
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print(S[0:K] + "...")
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,545
395,546
u878518432
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: str = S[:K]+'...' print(str)
[ "assignment.value.change", "call.arguments.change", "io.output.change", "call.add" ]
395,551
395,552
u756311765
python
p02676
k=int(input()) s=str(input()) if len(s)<=k: print(s[:k]) else: print(s[:k]+"....")
k=int(input()) s=str(input()) if len(s)<=k: print(s[:k]) else: print(s[:k]+"...")
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,555
395,556
u344813796
python
p02676
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S[0:K-1]+'...')
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S[0:K]+'...')
[ "expression.operation.binary.remove" ]
395,559
395,560
u082245101
python
p02676
k=int(input()) s=str(input()) if len(s)>k: print(s[0:k]+"...")
k=int(input()) s=str(input()) if len(s)>k: print(s[0:k]+"...") else: print(s)
[ "call.add" ]
395,567
395,566
u105290050
python
p02676
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: p=s[0:k-1] q='...' r=p+q print(r)
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: p=s[0:k] q='...' r=p+q print(r)
[ "expression.operation.binary.remove" ]
395,568
395,569
u071916806
python
p02676
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: p=s[1:l] q='...' r=p+q print(r)
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: p=s[0:k] q='...' r=p+q print(r)
[ "literal.number.integer.change", "assignment.value.change", "variable_access.subscript.index.change", "identifier.change" ]
395,570
395,569
u071916806
python
p02676
k=int(input()) s=input() l=len(s) if s<=k: print(s) else: p=s[1:l] q='...' r=p+q print(r)
k=int(input()) s=input() l=len(s) if l<=k: print(s) else: p=s[0:k] q='...' r=p+q print(r)
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.number.integer.change", "assignment.value.change", "variable_access.subscript.index.change" ]
395,571
395,569
u071916806
python
p02676
k= int(input()) s = input() if len(s) >= k: print(s[0:k]+"...") 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" ]
395,586
395,587
u951684192
python
p02676
n = int(input()) m = input() if len(m) < n : print(m) else: print(m[:n]+"...")
n = int(input()) m = input() if len(m) <= n : print(m) else: print(m[:n]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,605
395,606
u930723367
python
p02676
K = int(input()) S = input() if len(S) >= K: print(S[0:K] + '...') 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" ]
395,621
395,622
u577733647
python
p02676
n = [input() for i in range(2)] k = int(n[0]) s = n[1] print(k,s) if len(s) <= k: print(s) else: s = s[0:k] + "..." print(s)
n = [input() for i in range(2)] k = int(n[0]) s = n[1] if len(s) <= k: print(s) else: s = s[0:k] + "..." print(s)
[ "call.remove" ]
395,641
395,642
u580236524
python
p02676
# -*- coding: utf-8 -*- import sys import math #tmp = input().split() #n,m = list(map(lambda a: int(a), tmp)) k = int(input()) s = input() #tmp = input().split() #n,m,k = list(map(lambda a: int(a), tmp)) if(k>=len(s)): print(s) sys.exit() print(s[0:7]+"...")
# -*- coding: utf-8 -*- import sys import math #tmp = input().split() #n,m = list(map(lambda a: int(a), tmp)) k = int(input()) s = input() #tmp = input().split() #n,m,k = list(map(lambda a: int(a), tmp)) if(k>=len(s)): print(s) sys.exit() print(s[0:k]+"...")
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,647
395,648
u707870100
python
p02676
n=int(input()) k=input() if len(k)<=n: print(k) else: a=k[0:n+1] print(a+"...")
n=int(input()) k=input() if len(k)<=n: print(k) else: a=k[:n] print(a+"...")
[ "expression.operation.binary.remove" ]
395,649
395,650
u368270116
python
p02676
n=int(input()) K=input() if len(k)<=n: print(k) else: a=k[0:n+1] print(a+"...")
n=int(input()) k=input() if len(k)<=n: print(k) else: a=k[:n] print(a+"...")
[ "assignment.variable.change", "identifier.change", "expression.operation.binary.remove" ]
395,651
395,650
u368270116
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" ]
395,652
395,653
u108136854
python
p02676
K = int(input()) S = input() if S.__len__() < K: print(S) else: print(S[0:K] + "...")
K = int(input()) S = input() if S.__len__() <= K: print(S) else: print(S[0:K] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,656
395,657
u060896757
python
p02676
n = int(input()) s = str(input()) if n >= len(s): print(s) else: print(s[0:n-1] + "...")
n = int(input()) s = str(input()) if n >= len(s): print(s) else: print(s[0:n] + "...")
[ "expression.operation.binary.remove" ]
395,660
395,661
u048800107
python
p02676
n = int(input()) s = str(input()) if n >= len(s): print(s) else: print(s[0] + "...")
n = int(input()) s = str(input()) if n >= len(s): print(s) else: print(s[0:n] + "...")
[]
395,662
395,661
u048800107
python
p02676
K=int(input()) S=input() if len(S) <= K: print(S) else: print(S[0:7]+"...")
K=int(input()) S=input() if len(S) <= K: print(S) else: print(S[0:K]+"...")
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,665
395,666
u367575195
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" ]
395,694
395,695
u735891571
python
p02676
k = int(input()) s = input() slen = len(s) if k > slen: print(s) else: print(s[0:k] + "...")
k = int(input()) s = input() slen = len(s) if k >= slen: print(s) else: print(s[0:k] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,703
395,704
u038620042
python
p02676
K = int(input()) S = input() if len(S) <= K: print(S) else: s = [S[:7]] print(s[0]+'...')
K = int(input()) S = input() if len(S) <= K: print(S) else: s = [S[:K]] print(s[0]+'...')
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change" ]
395,729
395,730
u048013400
python
p02676
K=int(input()) S=str(input()) if len(S) <= K: print(S) elif len(S) > K: print(S[0:int(K)])
K=int(input()) S=str(input()) if len(S) <= K: print(S) elif len(S) > K: print(S[0:int(K)]+"...")
[ "expression.operation.binary.add" ]
395,752
395,753
u205303316
python
p02676
import sys import math def solution(): k=int(input()) s=input() if(k>len(s)): print(s) else: print(s[:k]+"...") if __name__ == "__main__": solution()
import sys import math def solution(): k=int(input()) s=input() if(len(s)<=k): print(s) else: print(s[:k]+"...") if __name__ == "__main__": solution()
[ "control_flow.branch.if.condition.change" ]
395,754
395,755
u809043290
python
p02676
n = int(input()) #print('n=',n) m = input() #print('m=',m) o = len(m) #print('o=',o) if o <= n: print(m) elif o > n: print(m[0:n],'...')
n = int(input()) #print('n=',n) m = input() #print('m=',m) o = len(m) #print('o=',o) if o <= n: print(m) elif o > n: print(m[0:n],'...',sep='')
[ "call.arguments.add" ]
395,761
395,762
u876616721
python
p02676
K = int(input()) S = input() s = int(len(S)) tmp = [] if s < K: print(S) else: for i in range(K): tmp.append(S[i]) tmp.append("...") #print(tmp) print("".join(map(str, tmp)))
K = int(input()) S = input() s = int(len(S)) tmp = [] if s <= K: print(S) else: for i in range(K): tmp.append(S[i]) tmp.append("...") #print(tmp) print("".join(map(str, tmp)))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,763
395,764
u033287260
python
p02676
import sys val = input() input_str = input() if 0 > int(val) or int(val) > 100: sys.exit() if 0 > len(input_str) or len(input_str) > 100: sys.exit() if int(val) >= len(input_str): print(input_str) else: new_str = input_str[0:7] print(new_str + '...')
import sys val = input() input_str = input() if 0 > int(val) or int(val) > 100: sys.exit() if 0 > len(input_str) or len(input_str) > 100: sys.exit() if int(val) >= len(input_str): print(input_str) else: new_str = input_str[0:int(val)] print(new_str + '...')
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.add" ]
395,766
395,767
u972534279
python
p02676
K = int(input()) S = input() if len(S) > K: for i in range(0,K): print(S[i], end="") print("") else: print(S)
K = int(input()) S = input() if len(S) > K: for i in range(0,K): print(S[i], end="") print("...") else: print(S)
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
395,770
395,771
u210882514
python
p02676
K=int(input()) S=input() if len(S)<K: print(S) else: text=S[0:K] text=text+"..." print(text)
K=int(input()) S=input() if len(S)<=K: print(S) else: text=S[0:K] text=text+"..." print(text)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,779
395,780
u904269060
python
p02676
k = int(input()) s = input() con1 = k >= 1 and k <= 100 con2 = len(s) >= 1 and len(s) <= 100 con3 = s.islower() == True and con2 == True if con1 == True and con3 == True: if k <= len(s): newstring = s[0:k] + "..." print(newstring) else: print(s) else: print()
k = int(input()) s = input() con1 = k >= 1 and k <= 100 con2 = len(s) >= 1 and len(s) <= 100 con3 = s.islower() == True and con2 == True if con1 == True and con3 == True: if k < len(s): newstring = s[0:k] + "..." print(newstring) else: print(s) else: print()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,781
395,782
u941679604
python
p02676
try: k=int(input()) s=input() if len(s)>k: print(s[0:7]+"...") else: print(s) except: pass
try: k=int(input()) s=input() if len(s)>k: print(s[0:k]+"...") else: print(s) except: pass
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,785
395,786
u827553608
python
p02676
K=int(input()) S=input() n=len(S) if n<=K: print(S) else: for i in range(7): print(S[i],end="") print("...")
K=int(input()) S=input() n=len(S) if n<=K: print(S) else: for i in range(K): print(S[i],end="") print("...")
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
395,791
395,792
u125348436
python
p02676
k = int(input()) s = input() listS = list(s) if len(s) < k: print(s) else: print(''.join(listS[0:k])+'...')
k = int(input()) s = input() listS = list(s) if len(s) <= k: print(s) else: print(''.join(listS[0:k])+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,793
395,794
u711295009
python
p02676
in_str = input() in_str2 = input() if (not in_str.isnumeric()) : print("error: 1st arg must be integer") exit() num = int(in_str) str = in_str2 str_len = len(in_str2) if num > 100 : print("error: 1st arg must be under 100") exit() if str_len> 100 : print("error: size of 2nd arg must be under 100"...
in_str = input() in_str2 = input() if (not in_str.isnumeric()) : print("error: 1st arg must be integer") exit() num = int(in_str) str = in_str2 str_len = len(in_str2) if num > 100 : print("error: 1st arg must be under 100") exit() if str_len> 100 : print("error: size of 2nd arg must be under 100"...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,795
395,796
u557042276
python
p02676
k = int(input()) s = list(input()) if k == len(s): print(''.join(s)) else: l = [] for i in range(k): l.append(s[i]) l.append('...') m = ''.join(l) print(m)
k = int(input()) s = list(input()) if k >= len(s): print(''.join(s)) else: l = [] for i in range(k): l.append(s[i]) l.append('...') m = ''.join(l) print(m)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,797
395,798
u782460722
python
p02676
k = int(input()) s = [] s = str(input()) if len(s)<= k: print(s) else: print(s[0:k],'...')
k = int(input()) s = [] s = str(input()) if len(s)<= k: print(s) else: print(s[0:k]+'...')
[ "call.arguments.change", "io.output.change" ]
395,803
395,804
u266143155
python
p02676
K = int(input()) S = input() if K <= len(S): print(S) else: print(S[:K] + "...")
K = int(input()) S = input() if K >= len(S): print(S) else: print(S[:K] + "...")
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,813
395,814
u344888046
python
p02676
K = int(input()) S = list(input()) if len(S) > K: print("".join(S[:7])+"...") else: print("".join(S))
K = int(input()) S = list(input()) if len(S) > K: print("".join(S[:K])+"...") else: print("".join(S))
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,821
395,822
u819593641
python
p02676
string_list = [input() for i in range(2)] if int(string_list[0]) > len(str(string_list[1])): print(string_list[1]) else: print(str(string_list[1])[: int(string_list[0])] + "...")
string_list = [input() for i in range(2)] if int(string_list[0]) >= len(str(string_list[1])): print(string_list[1]) else: print(str(string_list[1])[: int(string_list[0])] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,823
395,824
u376812964
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" ]
395,825
395,826
u518378780
python
p02676
k = int(input()) s = str(input()) if k >= len(s): ans = s else: rest = len(s) - k ans = s[0:k] + '.'*rest print(ans)
k = int(input()) s = str(input()) if k >= len(s): ans = s else: rest = len(s) - k ans = s[0:k] + '...' print(ans)
[ "literal.string.change", "assignment.value.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
395,842
395,843
u478266845
python
p02676
k = input() k = int(k) s = input() if len(s) < k: print(s) else: s = s[:k] print(str(s)+"...")
k = input() k = int(k) s = input() if len(s) <= k: print(str(s)) else: s = s[:k] print(str(s)+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.add", "call.arguments.change" ]
395,857
395,858
u457802431
python
p02676
k = int(input()) s = str(input()) n = len(s) - k print(s[k:]+'...' if n>0 else s)
k = int(input()) s = str(input()) n = len(s) - k print(s[:k]+'...' if n>0 else s)
[ "call.arguments.change" ]
395,864
395,865
u066120361
python
p02676
k = int(input()) s = str(input()) n = len(s) - k print(s[:-k-1]+'...' if n>0 else s)
k = int(input()) s = str(input()) n = len(s) - k print(s[:k]+'...' if n>0 else s)
[ "expression.operation.unary.arithmetic.remove", "call.arguments.change", "expression.operation.binary.remove" ]
395,866
395,865
u066120361
python
p02676
k = int(input()) s = str(input()) n = len(s) - k print(s[:n-1]+'...' if n>0 else s)
k = int(input()) s = str(input()) n = len(s) - k print(s[:k]+'...' if n>0 else s)
[ "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "expression.operation.binary.remove" ]
395,867
395,865
u066120361
python
p02676
k = int(input()) s = str(input()) n = len(s) - k print(s[:n-1]+'...' if n > 0 else s)
k = int(input()) s = str(input()) n = len(s) - k print(s[:k]+'...' if n>0 else s)
[ "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "expression.operation.binary.remove" ]
395,868
395,865
u066120361
python
p02676
K = int(input()) S = input() a = len(S) if a <= K: print(S) else: print(S[0:K-1]+"...")
K = int(input()) S = input() a = len(S) if a <= K: print(S) else: print(S[0:K]+"...")
[ "expression.operation.binary.remove" ]
395,877
395,878
u415915510
python
p02676
K=int(input()) S=input() B = list(S) L = len(S) if L < K : print(S) else: B=B[0:K] B= ''.join(B) print(B+'...')
K=int(input()) S=input() B = list(S) L = len(S) if L <= K : print(S) else: B=B[0:K] B= ''.join(B) print(B+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,902
395,903
u008801503
python
p02676
k = int(input()) s = input() if len(s) <= k: print(s) else: print("...{}".format(s[:k]))
k = int(input()) s = input() if len(s) <= k: print(s) else: print("{}...".format(s[:k]))
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
395,911
395,912
u465284486
python
p02676
k = int(input()) s = input() l = len(list(s)) if l <=k: print(s) else: t = s+"..." print(t)
k = int(input()) s = input() n = len(list(s)) if n <= k: print(s) else: t = s[:k]+"..." print(t)
[ "assignment.variable.change", "identifier.change", "control_flow.branch.if.condition.change" ]
395,919
395,920
u343523553
python
p02676
k = int(input()) s = str(input()) s_len = len(s) if s_len > k: k_short = str(s[0:7]+"...") print(k_short) else: print(s)
k = int(input()) s = str(input()) s_len = len(s) if s_len > k: k_short = str(s[0:k]+"...") print(k_short) else: print(s)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change" ]
395,945
395,946
u078527650
python
p02676
K = int(input()) S = list(input()) print(''.join(S) if len(S) <= K else ''.join(S[:7]) + '...')
K = int(input()) S = list(input()) print(''.join(S) if len(S) <= K else ''.join(S[:K]) + '...')
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,951
395,952
u496687522
python
p02676
n = int(input()) s = input() ans = "" if len(s) >= n: ans = s[0:(n)] + "..." else: ans = s print(ans)
n = int(input()) s = input() ans = "" if len(s) > n: ans = s[0:(n)] + "..." else: ans = s print(ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,953
395,954
u955135274
python
p02676
k = int(input()) s = input() if len(s) < k: print(s) else: s1 = s[0:k] s1 = s1 + '...' print(s1)
k = int(input()) s = input() if len(s) <= k: print(s) else: s1 = s[0:k] s1 = s1 + '...' print(s1)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,961
395,960
u050805798
python
p02676
#!/usr/bin/env python3 import sys def solve(K: int, S: str): if (len(S) <= K): print(S) else: print(K[0:K+1], "...", sep='') return # Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custo...
#!/usr/bin/env python3 import sys def solve(K: int, S: str): if (len(S) <= K): print(S) else: print(S[0:K], "...", sep='') return # Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom ...
[ "identifier.change", "call.arguments.change", "io.output.change", "expression.operation.binary.remove" ]
395,964
395,965
u792671636
python
p02676
k=int(input()) s=input() print(s if len(s)<=k else s[0:k+1]+"...")
k=int(input()) s=input() print(s if len(s)<=k else s[0:k]+"...")
[ "expression.operation.binary.remove" ]
395,971
395,972
u332793228
python
p02676
k=int(input()) s=input() print(s if len(s)<=k else s[1:k+1]+"...")
k=int(input()) s=input() print(s if len(s)<=k else s[0:k]+"...")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "expression.operation.binary.remove" ]
395,973
395,972
u332793228
python
p02676
k=int(input()) s=input() print(s if len(s)<=k else s[0]+"...")
k=int(input()) s=input() print(s if len(s)<=k else s[0:k]+"...")
[]
395,974
395,972
u332793228
python
p02676
K=int(input()) S=input() a=len(S) if a<=K: print(S) else: print(S[:K]+"."*(a-K))
K=int(input()) S=input() a=len(S) if a<=K: print(S) else: print(S[:K]+"."*3)
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,976
395,977
u552201227
python
p02676
K = int(input()) S = input() if len(S) > K: S = S[:K] + '...' print(a)
K = int(input()) S = input() if len(S) > K: S = S[:K] + '...' print(S)
[ "identifier.change", "call.arguments.change", "io.output.change" ]
395,978
395,979
u788608806
python
p02676
K = int(input()) S = input() if len(S) > K: a = S[:K] + '...' print(a)
K = int(input()) S = input() if len(S) > K: S = S[:K] + '...' print(S)
[ "assignment.variable.change", "identifier.change", "call.arguments.change", "io.output.change" ]
395,980
395,979
u788608806
python
p02676
K = int(input()) S = input() if len(S) > K: # print(S[:K]) a = S[:K] + '...' # S = S[:K].append('...') print(a)
K = int(input()) S = input() if len(S) > K: S = S[:K] + '...' print(S)
[ "assignment.variable.change", "identifier.change", "call.arguments.change", "io.output.change" ]
395,981
395,979
u788608806
python
p02676
k = input() s = input() if len(s) <= int(k): print(s) else: print(s[0:k] + "...")
k = input() s = input() if len(s) <= int(k): print(s) else: print(s[0:int(k)] + "...")
[ "call.add", "call.arguments.change" ]
395,982
395,983
u244423127
python
p02676
# -*- coding: utf-8 -*- K = int(input()) S = input() print("{}{}".format(S[:6+1], '...' if len(S) > K else ''))
# -*- coding: utf-8 -*- K = int(input()) S = input() print("{}{}".format(S[:K], '...' if len(S) > K else ''))
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change", "expression.operation.binary.remove" ]
395,984
395,985
u517630860
python
p02676
k=int(input()) s=str(input()) ss = list(s) if len(s) <= k : print(s) else: ss = ss[0:len(s)-k] print(''.join(ss)+"...")
k=int(input()) s=str(input()) ss = list(s) if len(s) <= k : print(s) else: ss = ss[0:k] print(''.join(ss)+"...")
[ "expression.operation.binary.remove" ]
395,986
395,987
u684267998
python
p02676
a=input() b=input() if len(b) < int(a): print(b) else: print(b[0:int(a)]+'...')
a=input() b=input() if len(b) <= int(a): print(b) else: print(b[0:int(a)]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,991
395,992
u629471944
python
p02676
K = int(input()) S = str(input()) sen = '' if len(S)<=K: print(S) else: # print(S[0:K-1]) sen = S[0:K-1] + '...' print(sen)
K = int(input()) S = str(input()) sen = '' if len(S)<=K: print(S) else: # print(S[0:K-1]) sen = S[0:K] + '...' print(sen)
[ "expression.operation.binary.remove" ]
395,997
395,998
u762755436
python