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 = input() s = len(S) if s <= K: print(S) else: print(S[:K+1]+'...')
K = int(input()) S = input() s = len(S) if s <= K: print(S) else: print(S[:K]+'...')
[ "expression.operation.binary.remove" ]
394,566
394,567
u728564399
python
p02676
#!/usr/bin/env python3 # atcoder # Türkçe konuşyorum # Türkler var mı # memnün oldum K = int(input()) S = input() if(len(S) <= K): print(S) else: print(S[K:] + '.' * 3)
#!/usr/bin/env python3 # atcoder # Türkçe konuşyorum # Türkler var mı # memnün oldum K = int(input()) S = input() if(len(S) <= K): print(S) else: print(S[:K] + '.' * 3) #for i in range(3): # change = change.replace(change[i], '.') #print(S[:K] + change[:3])
[ "call.arguments.change" ]
394,590
394,591
u532955973
python
p02676
a = int(input()) s = input() if(len(s) > a): print(s +"...") else: print(s)
a = int(input()) s = input() if(len(s) > a): print(s[:a] +"...") else: print(s)
[]
394,598
394,599
u639703036
python
p02676
n=int(input()) s=input() l=len(s) if l>n: print(s[:n].join('...')) else: print(s)
n=int(input()) s=input() l=len(s) if l>n: print(s[:n]+'...') else: print(s)
[ "call.arguments.change", "io.output.change", "call.remove" ]
394,605
394,606
u008566194
python
p02676
n = int(input()) s = input() l = len(s) if len <= n: print(s) else: print(s[:n] + '...')
n = int(input()) s = input() l = len(s) if l <= n: print(s) else: print(s[:n] + '...')
[ "identifier.change", "control_flow.branch.if.condition.change" ]
394,608
394,609
u939949527
python
p02676
def solve(): n = len(s) if n <= k: print(s) else: print(s[:n] + "...") return #n, m = [int(ii) for ii in raw_input().split()] k = int(input()) s = input() solve()
def solve(): n = len(s) if n <= k: print(s) else: print(s[:k] + "...") return #n, m = [int(ii) for ii in raw_input().split()] k = int(input()) s = input() solve()
[ "identifier.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
394,628
394,629
u618101737
python
p02676
def solve(): n = len(s) if n <= k: print(s) else: print(s + "...") return #n, m = [int(ii) for ii in raw_input().split()] k = int(input()) s = input() solve()
def solve(): n = len(s) if n <= k: print(s) else: print(s[:k] + "...") return #n, m = [int(ii) for ii in raw_input().split()] k = int(input()) s = input() solve()
[]
394,630
394,629
u618101737
python
p02676
# -*- coding: utf-8 -*- S=input() K=input() if(len(K)>=S): print(K[0:S]+"...") else: print(K)
# -*- coding: utf-8 -*- S=int(input()) K=input() if(len(K)>S): print(K[0:S]+"...") else: print(K)
[ "call.add", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,635
394,636
u752236842
python
p02676
# -*- coding: utf-8 -*- S=int(input()) K=input() if(len(K)>=S): print(K[0:S]+"...") else: print(K)
# -*- coding: utf-8 -*- S=int(input()) K=input() if(len(K)>S): print(K[0:S]+"...") else: print(K)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,637
394,636
u752236842
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]+"...")
[]
394,638
394,639
u008382444
python
p02676
import sys #a = [] #for l in sys.stdin: # a.append(int(l)) k = int(input()) s = input() if len(s) <= k: print(s) else: for i in range(k): print(s[i], end="") for i in range(len(s) - k): print('.', end="")
import sys #a = [] #for l in sys.stdin: # a.append(int(l)) k = int(input()) s = input() if len(s) <= k: print(s) else: for i in range(k): print(s[i], end="") for i in range(3): print('.', end="")
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "control_flow.loop.range.bounds.upper.change", "expression.operation.binary.remove" ]
394,642
394,643
u681047290
python
p02676
k = int(input('')) s = str(input('')) while not 1 <= k <= 100: print('out of range! enter again') k = int(input('')) while not s.islower(): print('must be lowercase! enter again') s = str(input('')) if k > len(s): print(s) else: out = s[:k] + '...' print(out)
k = int(input('')) s = str(input('')) while not 1 <= k <= 100: print('out of range! enter again') k = int(input('')) while not s.islower(): print('must be lowercase! enter again') s = str(input('')) if k >= len(s): print(s) else: out = s[:k] + '...' print(out)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,678
394,679
u651206832
python
p02676
K = int(input()) S = input() L = len(S) if K <= L: print(S[0:K]+"...") else: print(S)
K = int(input()) S = input() L = len(S) if K < L: print(S[0:K]+"...") else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,680
394,681
u051496905
python
p02676
def main(): K = int(input()) S = input() ans = S if len(S) <= K else S[:K + 1] + "..." print(ans) if __name__ == "__main__": main()
def main(): K = int(input()) S = input() ans = S if len(S) <= K else S[:K] + "..." print(ans) if __name__ == "__main__": main()
[ "expression.operation.binary.remove" ]
394,684
394,685
u322763702
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" ]
394,690
394,691
u507456172
python
p02676
x = input() y = input() z = len(y) if z <= int(x): print(y) else: print(y[:int(x)])
x = input() y = input() z = len(y) if z <= int(x): print(y) else: print(y[:int(x)]+'...')
[ "expression.operation.binary.add" ]
394,692
394,693
u642502903
python
p02676
k = int(input()) s = input() n = len(s) if k <= n: print(s) else: print(s[:k]+'...')
k = int(input()) s = input() n = len(s) if n <= k: print(s) else: print(s[:k]+'...')
[ "control_flow.branch.if.condition.change" ]
394,737
394,738
u548055354
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" ]
394,743
394,744
u568711768
python
p02676
num=int(input()) str=input() if(len(str)<=num): print(str) else: print(str[0:num],"...")
num=int(input()) str=input() if(len(str)<=num): print(str) else: print(str[0:num]+"...")
[ "call.arguments.change", "io.output.change" ]
394,753
394,754
u038216098
python
p02676
S=int(input()) K=input() k=len(K) if k>=S: print(K[:S]+'...') else: print(K)
S=int(input()) K=input() k=len(K) if k>S: print(K[:S]+'...') else: print(K)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,762
394,763
u834322852
python
p02676
K = int(input()) S = input() answer = None is_less_than_K = len(S) <= K if is_less_than_K: answer = S else: answer = S[0:K + 1] + '...' print(answer)
K = int(input()) S = input() answer = None is_less_than_K = len(S) <= K if is_less_than_K: answer = S else: answer = S[0:K] + '...' print(answer)
[ "expression.operation.binary.remove" ]
394,764
394,765
u017624958
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" ]
394,777
394,778
u478417863
python
p02676
K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K-1]+"...")
K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K]+"...")
[ "expression.operation.binary.remove" ]
394,783
394,784
u218216885
python
p02676
k=int(input()) s=input() if(k>len(s)): print(s) else: print(s[0:k]+'...')
k=int(input()) s=input() if(k>=len(s)): print(s) else: print(s[0:k]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,804
394,805
u534918612
python
p02676
k=int(input()) s=input() if(k>len(s)): print(s) else: print(s[0:k],"...")
k=int(input()) s=input() if(k>=len(s)): print(s) else: print(s[0:k]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
394,806
394,805
u534918612
python
p02676
K = int(input()) S = input() s_l = len(S) if s_l > K: print(S[0:7] + "...") else: print(S)
K = int(input()) S = input() s_l = len(S) if s_l > 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" ]
394,807
394,808
u559157859
python
p02676
def main(): import sys length = int(sys.stdin.readline()) string = sys.stdin.readline() if(len(string) <= length): print(string) else: print(string[:length] + "...") if __name__ == "__main__": main()
def main(): import sys length = int(sys.stdin.readline()) string = sys.stdin.readline().strip() if(len(string) <= length): print(string) else: print(string[:length] + "...") if __name__ == "__main__": main()
[ "call.add" ]
394,809
394,810
u608660501
python
p02676
K = int(input()) S = input() s = "" for x in range(min(len(S),K)): s += S[x] if len(S) >= K: print(s + "...") else: print(s)
K = int(input()) S = input() s = "" for x in range(min(len(S),K)): s += S[x] if len(S) > K: print(s + "...") else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
394,821
394,822
u608454345
python
p02676
k, s = int(input()), input() print(s[::k] + "..." if len(s) > k else s)
k, s = int(input()), input() print(s[:k] + "..." if len(s) > k else s)
[ "call.arguments.change" ]
394,836
394,837
u373047809
python
p02676
k = int(input()) s = input() if k > s: print(s[0:k+1] + "...") else: print(s)
k = int(input()) s = input() if k < len(s): print(s[0:k] + "...") else: print(s)
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.add", "expression.operation.binary.remove" ]
394,848
394,849
u480321332
python
p02676
n=int(input()) s=input() if len(s)>n: print(s[:7]+'...') else: print(s)
n=int(input()) s=input() if len(s)>n: print(s[:n]+'...') else: print(s)
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
394,850
394,851
u411203878
python
p02676
inputk = input() k = int(inputk) s = input() #len()は文字数取得 if(len(s) <= k): print(s) else: print(s[0 : k - 1] + "...")
inputk = input() k = int(inputk) s = input() #len()は文字数取得 if(len(s) <= k): print(s) else: print(s[0 : k] + "...")
[ "expression.operation.binary.remove" ]
394,856
394,857
u121204840
python
p02676
inputk = input() k = int(inputk) s = input() #len()は文字数取得 if(len(s) <= k): print(s) else: print(s[1:k] + "...")
inputk = input() k = int(inputk) s = input() #len()は文字数取得 if(len(s) <= k): print(s) else: print(s[0 : k] + "...")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
394,858
394,857
u121204840
python
p02676
K=int(input()) S=input() def moji(S,K): if len(S)<=K: print(S) else: T="" for i in range(len(S)): if i <K: T+=S[i] if i >=K: continue T+="..." print(T) moji("S",K)
K=int(input()) S=input() def moji(S,K): if len(S)<=K: print(S) else: T="" for i in range(len(S)): if i <K: T+=S[i] if i >=K: continue T+="..." print(T) moji(S,K)
[ "call.arguments.change" ]
394,922
394,923
u349765885
python
p02676
K=int(input()) S=input() def moji(S,K): if len(S)<=K: print(S) else: T="" for i in range(len(S)): if i <K: T+=S[i] if i >=K: continue T+="..." print(T)
K=int(input()) S=input() def moji(S,K): if len(S)<=K: print(S) else: T="" for i in range(len(S)): if i <K: T+=S[i] if i >=K: continue T+="..." print(T) moji(S,K)
[ "call.add" ]
394,924
394,923
u349765885
python
p02676
i = int(input()) s= input() if len(s) > k: s=s[:k] + "..." print(s)
i = int(input()) s= input() if len(s) > i: s=s[:i] + "..." print(s)
[ "identifier.change", "control_flow.branch.if.condition.change", "assignment.value.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
394,955
394,956
u343151547
python
p02676
k = int(input()) s = str(input()) if k<len(s): s = s[:k:1] + "..." else: pass print(k) print(s)
k = int(input()) s = str(input()) if k<len(s): s = s[:k:1] + "..." else: pass print(s)
[ "call.remove" ]
394,966
394,967
u401645051
python
p02676
k = int(input()) s = input() print(s[:k] + '.' * (len(s) - k))
k=int(input());s=input();print(s[:k]+'.'*3*(len(s)>k))
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
394,970
394,971
u943004959
python
p02676
k = int(input()) s = input() print(s[:k] + '.' * (len(s) - k))
k=int(input());s=input();print(s[:k]+"..."*(len(s)>k))
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
394,970
394,972
u943004959
python
p02676
import sys K = int(sys.stdin.readline()) S = sys.stdin.readline() if len(S) > K: print(S[:K] + "...") else: print(S)
import sys K = int(sys.stdin.readline()) # S = sys.stdin.readline() S = sys.stdin.readline().rstrip() if len(S) > K: print(S[:K] + "...") else: print(S)
[ "call.add" ]
394,987
394,988
u216928054
python
p02676
k=int(input()) s=input() lng=len(s) x=s[:k] if k > lng: print(s) else: print(x+'...')
k=int(input()) s=input() lng=len(s) x=s[:k] if k >= lng: print(s) else: print(x+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,036
395,037
u282707041
python
p02676
k=int(input()) s=input() lng=len(s) x=s[:k] if k < lng: print(s) else: print(x+'...')
k=int(input()) s=input() lng=len(s) x=s[:k] if k >= lng: print(s) else: print(x+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,038
395,037
u282707041
python
p02676
import math import sys k = int(input()) s = input() if (len(s) >= k): print(s[0:k] + "...") else: print(s)
import math import sys 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,048
395,049
u625920333
python
p02676
a = int(input()) z = input() if len(z) >= a: print(z[0:a] + "...") else: print(z)
a = int(input()) z = input() if len(z) > a: print(z[0:a] + "...") else: print(z)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,055
395,056
u096025032
python
p02676
K = int(input()) S = input() leng = len(S) print(leng) if(leng >= K): word = S[0:K] + '...' else: word = S print(word)
K = int(input()) S = input() leng = len(S) #print(leng) if(leng > K): word = S[0:K] + '...' else: word = S print(word)
[ "call.remove", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,063
395,064
u789282627
python
p02676
K = int(input()) S = input() leng = len(S) print(leng) if(leng > K): word = S[0:K] + '...' else: word = S print(word)
K = int(input()) S = input() leng = len(S) #print(leng) if(leng > K): word = S[0:K] + '...' else: word = S print(word)
[ "call.remove" ]
395,065
395,064
u789282627
python
p02676
K=int(input()) S=input() if (K>=len(S)): print (S) else: print ((S[0:(K-1)]) + "...")
K=int(input()) S=input() if (K>=len(S)): print (S) else: print ((S[0:(K)]) + "...")
[ "expression.operation.binary.remove" ]
395,075
395,076
u014646120
python
p02676
K=int(input()) S=input() if (K>=len(S)): print (S) else: print ((S[0:(K+1)]) + "...")
K=int(input()) S=input() if (K>=len(S)): print (S) else: print ((S[0:(K)]) + "...")
[ "expression.operation.binary.remove" ]
395,078
395,076
u014646120
python
p02676
K=int(input()) S=input() if (K>len(S)): print (S) else: print ((S[0:(K+1)]) + "...")
K=int(input()) S=input() if (K>=len(S)): print (S) else: print ((S[0:(K)]) + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
395,079
395,076
u014646120
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" ]
395,082
395,083
u829778936
python
p02676
k = int(input()) s = input() print(s if len(s)<k else s[:7]+'...')
k = int(input()) s = input() print(s if len(s)<=k else s[:k]+'...')
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
395,084
395,083
u829778936
python
p02676
n = int(input()) s = input() a = len(s) if a >= n: print(s) else: print(s[0:n-1] + '...')
n = int(input()) s = input() a = len(s) if a <= n: print(s) else: print(s[0:n] + '...')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
395,096
395,097
u813405587
python
p02676
n = int(input()) s = input() a = len(s) if a <= n: print(s) else: print(s[0:n-1] + '...')
n = int(input()) s = input() a = len(s) if a <= n: print(s) else: print(s[0:n] + '...')
[ "expression.operation.binary.remove" ]
395,098
395,097
u813405587
python
p02676
n = int(input()) s = input() a = len(s) if s <= n: print(s) else: print(s[0:n-1] + '...')
n = int(input()) s = input() a = len(s) if a <= n: print(s) else: print(s[0:n] + '...')
[ "identifier.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
395,099
395,097
u813405587
python
p02676
K=int(input()) S=str(input()) if len(S) <= K : print(S) else : print(S[1:K]+"...")
K=int(input()) S=str(input()) if len(S) <= K : print(S) else : print(S[0:K]+"...")
[ "literal.number.integer.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,107
395,108
u463704918
python
p02676
K = int(input()) S = input() Sl = len(S) if Sl <= K: ans = S else: newS = S[0 :: K - 1] ans = (newS + "...") print(ans)
K = int(input()) S = input() Sl = len(S) if Sl <= K: ans = S else: newS = S[0 : K] ans = (newS + "...") print(ans)
[ "expression.operation.binary.remove" ]
395,120
395,121
u317533286
python
p02676
K = int(input()) S = input() Sl = len(S) if Sl <= K: ans = S else: newS = S[0 : K-1] ans = (newS + "...") print(ans)
K = int(input()) S = input() Sl = len(S) if Sl <= K: ans = S else: newS = S[0 : K] ans = (newS + "...") print(ans)
[ "expression.operation.binary.remove" ]
395,122
395,121
u317533286
python
p02676
K = int(input()) S = input() Sl = len(S) if Sl <= K: ans = S else: newS = S[0 : Sl - 1] ans = (newS + "...") print(ans)
K = int(input()) S = input() Sl = len(S) if Sl <= K: ans = S else: newS = S[0 : K] ans = (newS + "...") print(ans)
[ "assignment.value.change", "variable_access.subscript.index.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
395,123
395,121
u317533286
python
p02676
#!/usr/bin/env python3 from collections import defaultdict,deque from heapq import heappush, heappop from bisect import bisect_left, bisect_right import sys, random, itertools, math sys.setrecursionlimit(10**5) input = sys.stdin.readline sqrt = math.sqrt def LI(): return list(map(int, input().split())) def LF(): return...
#!/usr/bin/env python3 from collections import defaultdict,deque from heapq import heappush, heappop from bisect import bisect_left, bisect_right import sys, random, itertools, math sys.setrecursionlimit(10**5) input = sys.stdin.readline sqrt = math.sqrt def LI(): return list(map(int, input().split())) def LF(): return...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,131
395,132
u423585790
python
p02676
s = [input() for i in range(2)] s0 = int(s[0]) l0 = len(s[1]) if s0 >= l0: print(s[1]) if s0 < l0: print(s[1][:s0],'...')
s = [input() for i in range(2)] s0 = int(s[0]) l0=len(s[1]) if s0 >= l0: print(s[1]) if s0 < l0: print(s[1][:s0]+'...')
[ "call.arguments.change", "io.output.change" ]
395,133
395,134
u385475040
python
p02676
s = [input() for i in range(2)] s0 = int(s[0]) l0=len(s[1]) if s0 >= l0: print(s[1]) if s0 < l0: print(s[1][:s0],'...')
s = [input() for i in range(2)] s0 = int(s[0]) l0=len(s[1]) if s0 >= l0: print(s[1]) if s0 < l0: print(s[1][:s0]+'...')
[ "call.arguments.change", "io.output.change" ]
395,135
395,134
u385475040
python
p02676
k = int(input()) s = str(input()) if k>=len(s): print(s) else: a = s+'...' print(a)
k = int(input()) s = str(input()) if k>=len(s): print(s) else: a = s[0:k]+'...' print(a)
[]
395,136
395,137
u205087376
python
p02676
k = int(input()) s = str(input()) if k>=len(s): print(s) else: a = s+s[0:k] print(a)
k = int(input()) s = str(input()) if k>=len(s): print(s) else: a = s[0:k]+'...' print(a)
[ "expression.operation.binary.remove" ]
395,138
395,137
u205087376
python
p02676
K = int(input()) S = str(input()) s = int(len(S)) if s <= K: print(S) else: print(S[0:K + 1] + '...')
K = int(input()) S = str(input()) s = int(len(S)) if s <= K: print(S) else: print(S[0:K] + '...')
[ "expression.operation.binary.remove" ]
395,147
395,148
u581444421
python
p02676
K = input() S = str(input()) if len(S)<=K: print(S) if len(S)>K: K = int(K) S = str(S[0:K])+ "..." print(S)
K = input() S = str(input()) if len(S)<=int(K): print(S) if len(S)>int(K): K = int(K) S = str(S[0:K])+ "..." print(S)
[ "control_flow.branch.if.condition.change", "call.add" ]
395,164
395,165
u054081189
python
p02676
K = input() S = str(input()) if len(S)<=len(K): print(S) if len(S)>len(K): K = int(K) S = str(S[0:K])+ "..." print(S)
K = input() S = str(input()) if len(S)<=int(K): print(S) if len(S)>int(K): K = int(K) S = str(S[0:K])+ "..." print(S)
[ "identifier.change", "call.function.change", "control_flow.branch.if.condition.change" ]
395,166
395,165
u054081189
python
p02676
K=int(input()) S=input() if len(S) > K: S = S[:K] print(S+"...")
K=int(input()) S=input() if len(S) > K: S = S[:K]+"..." print(S)
[ "call.remove", "call.add" ]
395,170
395,171
u553824105
python
p02676
K = int(input()) S = input() if len(S) <= K: print(S) else: M = S[0:K+1] print(M + "...")
K = int(input()) S = input() if len(S) <= K: print(S) else: M = S[0:K] print(M + "...")
[ "expression.operation.binary.remove" ]
395,186
395,187
u465652095
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: M = S[0:K] print(M + "...")
[ "expression.operation.binary.remove", "call.add" ]
395,188
395,187
u465652095
python
p02676
def main(): K = int(input()) S = input() if len(S) < K: print(S) else: print(S[:K]+"...") if __name__ == "__main__": main()
def main(): K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[:K]+"...") if __name__ == "__main__": main()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,191
395,192
u104935308
python
p02676
length=eval(input("")) string = input("") if(len(string)==length): print(string) if(len(string)>length): print(string[0:length],end="...")
length=eval(input("")) string = input("") if(len(string)<=length): print(string) if(len(string)>length): print(string[0:length],end="...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,197
395,198
u764604930
python
p02676
K = int(input()) S = str(input()) if len(S) < K : print(S) else: # print('{}{}'.format(S[0:K+1], '...')) 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" ]
395,199
395,200
u134245489
python
p02676
K = int(input()) S = str(input()) if len(S) < K : print(S) else: print(S[0:K+1]+'...')
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", "expression.operation.binary.remove" ]
395,201
395,200
u134245489
python
p02676
K = int(input()) T = input() S = list(T) if len(S) <= K: print(T) else: A = ''.join(S[:K]) print(A, '...')
K = int(input()) T = input() S = list(T) if len(S) <= K: print(T) else: A = ''.join(S[:K]) print(A, '...', sep='')
[ "call.arguments.add" ]
395,204
395,205
u010262832
python
p02676
K = int(input()) S = int(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]+"...")
[ "call.remove", "call.arguments.change" ]
395,227
395,228
u114233208
python
p02676
n = int(input()) a = input() if len(a) > n: print(a[0:n+1]+'...') else: print(a )
n = int(input()) a = input() if len(a) > n: print(a[0:n]+'...') else: print(a )
[ "expression.operation.binary.remove" ]
395,233
395,234
u997036872
python
p02676
n = int(input()) a = input() if len(a) > n: print(a[0:n+1]) else: print(a)
n = int(input()) a = input() if len(a) > n: print(a[0:n]+'...') else: print(a )
[ "expression.operation.binary.remove" ]
395,235
395,234
u997036872
python
p02676
k = input() s = input() if len(s)>=int(k): print(s) else: print(s[0:int(k)]+'...')
k = input() s = input() if len(s)<=int(k): print(s) else: print(s[0:int(k)]+'...')
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,236
395,237
u240292623
python
p02676
k = int(input()) s = input() ls = len(s) if k >= ls: print(s) else: for i in range(k): print(s[i], end = "") print("…")
k = int(input()) s = input() ls = len(s) if k >= ls: print(s) else: for i in range(k): print(s[i], end = "") print("...")
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
395,240
395,241
u014139588
python
p02676
K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[K:] + "." * 3)
K = int(input()) S = input() if len(S) <= K: print(S) else: print(S[0:K] + "." * 3)
[ "identifier.replace.remove", "literal.replace.add", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,250
395,251
u334370828
python
p02676
K = int(input()) S = str(input()) if len(S) < K: print(S) else: print('{}...'.format(S[0:K]))
K = int(input()) S = str(input()) if len(S) <= K: print(S) else: print('{}...'.format(S[0:K]))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,252
395,253
u187995255
python
p02676
K = int(input()) S = list(input()) length = len(S) if length < K: print(("".join(S))) else: result = S[:K] print(("".join(result))+"...")
K = int(input()) S = list(input()) length = len(S) if length <= K: print(("".join(S))) else: result = S[:K] print(("".join(result))+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,264
395,265
u694924053
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)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,266
395,267
u594062653
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[:K] + "...") else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change" ]
395,268
395,267
u594062653
python
p02676
k = int(input()) s = input() s = s.lower() ls = [] if len(s) < k: print(s) else: result = s[:k]+"..." print(result)
k = int(input()) s = input() s = s.lower() ls = [] if len(s) <= k: print(s) else: result = s[:k]+"..." print(result)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,271
395,272
u727021494
python
p02676
K = int(input()) S = input() if len(S)<=K: print(S) elif len(S) > K: print(S[0:-K-1], end="...")
K = int(input()) S = input() if len(S)<=K: print(S) elif len(S) > K: print(S[0:K], end="...")
[ "expression.operation.unary.arithmetic.remove", "call.arguments.change", "expression.operation.binary.remove" ]
395,273
395,274
u382169668
python
p02676
import sys input = sys.stdin.readline def main(): if len(S) <= K: print(S) else: print(S[:K]+"...") if __name__ == "__main__": K = int(input()) S = input() main()
import sys input = sys.stdin.readline def main(): if K >= len(S)-1: print(S) else: print(S[:K]+"...") if __name__ == "__main__": K = int(input()) S = input() main()
[ "control_flow.branch.if.condition.change" ]
395,277
395,278
u461513098
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]+'...')
[ "call.arguments.change", "io.output.change" ]
395,279
395,280
u306497037
python
p02676
K = input() S = input() K = int(K) if (len(S) <= K): print(S) elif (len(S) > K): M = S[K:] print(M + "...")
K = input() S = input() K = int(K) if (len(S) <= K): print(S) elif (len(S) > K): M = S[:K] print(M + "...")
[]
395,296
395,297
u730807152
python
p02676
k = int(input()) s = input() if len(s.lower())< k: print(s) else: print(s.lower()[:k]+'...')
k = int(input()) s = input() if len(s.lower())<= k: print(s) else: print(s.lower()[:k]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,298
395,299
u217729995
python
p02676
fig = int(input()) moji = input() if fig > len(moji): print(moji) else: print(moji[0:fig] + "...")
fig = int(input()) moji = input() if fig >= len(moji): print(moji) else: print(moji[0:fig] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,313
395,314
u181510245
python
p02676
K = int(input()) S = input() if S.islower() and len(S) < K: print(S) elif S.islower() and len(S) > K: print(f"{S[0:K]}{'...'}")
K = int(input()) S = input() if S.islower() and len(S) <= K: print(S) elif S.islower() and len(S) >= K: print(f"{S[0:K]}{'...'}")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,317
395,318
u636256839
python
p02676
i = int(input()) s = list(input()) if i <= len(s): for j in range(i): print(s[j],end="") print("...") else: for j in range(len(s)): print(s[j],end="")
i = int(input()) s = list(input()) if i < len(s): for j in range(i): print(s[j],end="") print("...") else: for j in range(len(s)): print(s[j],end="")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,321
395,322
u912867658
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)
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,326
395,327
u977650778
python
p02676
a = int(input()) b = input() if len(a) < b: print(b[:a]+'...') else: print(b)
a = int(input()) b = input() if len(b) > a: print(b[:a]+'...') else: print(b)
[ "control_flow.branch.if.condition.change" ]
395,328
395,327
u977650778
python
p02676
K = int(input()) S = input() SS = (int(len(S))) if SS-K <= 0: print(S) else: print((S[:K-SS])+('.'*(SS-K)))
K = int(input()) S = input() SS = (int(len(S))) if SS-K <= 0: print(S) else: print((S[:K-SS])+('.'*3))
[ "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,341
395,342
u801676229
python
p02676
K = int(input()) S = input() SS = (int(len(S))) if SS-K <= 0: print(S) else: print((S[:SS-K])+('.'*K))
K = int(input()) S = input() SS = (int(len(S))) if SS-K <= 0: print(S) else: print((S[:K-SS])+('.'*3))
[ "expression.operation.binary.remove", "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
395,344
395,342
u801676229
python
p02676
k = int(input()) s = input() if len(s) > k: print(s[0] + '...') else: print(s)
k = int(input()) s = input() if len(s) > k: print(s[0:k] + '...') else: print(s)
[]
395,345
395,346
u609018550
python
p02676
K=int(input()) S=list(input()) if len(S)>=K: answer=[] for i in range(K): answer.append(S[i]) answer.append('...') s='' for i in range(len(answer)): s+=answer[i] print(s) else: g='' for i in range(len(S)): g+=S[i] print(g)
K=int(input()) S=list(input()) if len(S)>K: answer=[] for i in range(K): answer.append(S[i]) answer.append('...') s='' for i in range(len(answer)): s+=answer[i] print(s) else: g='' for i in range(len(S)): g+=S[i] print(g)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
395,347
395,348
u439025531
python
p02676
n=int(input()) w=input() wordlength=len(w) if n>=wordlength: print(w) else: print(w[:n])
n=int(input()) w=input() wordlength=len(w) if n>=wordlength: print(w) else: print(w[:n]+'...')
[ "expression.operation.binary.add" ]
395,363
395,364
u407567153
python