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()) 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", "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,346
393,344
u354623416
python
p02676
k = int(input()) s = input() if len(s) <= k: print(s) else: print(s[:7]+'...')
k = int(input()) s = 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" ]
393,357
393,358
u830881690
python
p02676
k=int(input()) s=input() print(s[:k+1]+"{0}".format("..."*(len(s)>k)))
k=int(input()) s=input() print(s[:k]+"{0}".format("..."*(len(s)>k)))
[ "expression.operation.binary.remove" ]
393,359
393,360
u921617614
python
p02676
K = int(input()) S = input() word = S if len(S) >= K: word = S[:K] + "..." print(word)
K = int(input()) S = input() word = S if len(S) > K: word = S[:K] + "..." print(word)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,379
393,380
u263483399
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[0:K]+"...")
[]
393,383
393,384
u146066372
python
p02676
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S+"...")
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S[0:K]+"...")
[]
393,386
393,384
u146066372
python
p02676
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S,"...")
K=int(input()) S=input() if len(S)<=K: print(S) else: print(S[0:K]+"...")
[ "call.arguments.change", "io.output.change" ]
393,387
393,384
u146066372
python
p02676
K = int(input()) S = input() n = len(S) if n <= K: print(S) else: print(S[0:K+1] + '...')
K = int(input()) S = input() n = len(S) if n <= K: print(S) else: print(S[0:K] + '...')
[ "expression.operation.binary.remove" ]
393,388
393,389
u715435591
python
p02676
K = int(input()) S = input() n = len(s) if n > K: print(S) else: print(S[0:K+1]+'...')
K = int(input()) S = input() n = len(S) if n <= K: print(S) else: print(S[0:K] + '...')
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
393,390
393,389
u715435591
python
p02676
def TripleDots(): Num = int(input()) moji = str(input()) if len(moji) >= Num: moji_cut = moji[:Num] + '...' else: moji_cut = moji print(moji_cut) if __name__ == '__main__': TripleDots()
def TripleDots(): Num = int(input()) moji = str(input()) if len(moji) > Num: moji_cut = moji[:Num] + '...' else: moji_cut = moji print(moji_cut) if __name__ == '__main__': TripleDots()
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,401
393,402
u075317232
python
p02676
k = int(input()) s = input() if len(s) <= k: print(s) elif len(s) > k: print(s[:k - 1] + '...')
k = int(input()) s = input() if len(s) <= k: print(s) elif len(s) > k: print(s[: k] + '...')
[ "expression.operation.binary.remove" ]
393,413
393,414
u569776981
python
p02676
K = int(input()) S = input() ans = "" if K >= len(S): print(S) else: for i in range(K): ans += S[i] print(ans + "…")
K = int(input()) S = input() ans = "" if K >= len(S): print(S) else: for i in range(K): ans += S[i] print(ans + "...")
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,419
393,420
u967484343
python
p02676
k = int(input()) s = str(input()) if len(s) <= k: print(s) elif len(s) > k: print(s[0:k-1] + '...')
k = int(input()) s = str(input()) if len(s) <= k: print(s) elif len(s) > k: print(s[:k] + '...')
[ "call.arguments.change", "expression.operation.binary.remove" ]
393,421
393,422
u414376763
python
p02676
T=int(input()) S=str(input()) s=len(S) if s<T: print(S) else: print(S[:T]+'...')
T=int(input()) S=str(input()) s=len(S) if s<=T: print(S) else: print(S[:T]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,431
393,432
u799428010
python
p02676
T=int(input()) S=str(input()) s=len(S) if s<T: print(S) else: print(S+'...')
T=int(input()) S=str(input()) s=len(S) if s<=T: print(S) else: print(S[:T]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,433
393,432
u799428010
python
p02676
K = int(input()) S = input() if len(S) <= K: print(S) elif len(S) > K: print(S[0:K-1]+"...")
K = int(input()) S = input() if len(S) <= K: print(S) elif len(S) > K: print(S[0:K]+"...")
[ "expression.operation.binary.remove" ]
393,438
393,439
u279570066
python
p02676
a=int(input()) b=input() if a>len(b): print(b) else: print(b[0:a]+"...")
a=int(input()) b=input() if a>=len(b): print(b) else: print(b[0:a]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,440
393,441
u000037600
python
p02676
a=int(input()) b=input() if a>len(b): print(b) else: print(b[0:a],"...")
a=int(input()) b=input() if a>=len(b): print(b) else: print(b[0:a]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change", "io.output.change" ]
393,442
393,441
u000037600
python
p02676
K = int(input()) S = input() if len(S) < K: print(S) else: print("{0}...".format(S[0:K]))
K = int(input()) S = input() if len(S) <= K: print(S) else: print("{0}...".format(S[0:K]))
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,445
393,446
u072507091
python
p02676
def Ii():return int(input()) def Mi():return map(int,input().split()) def Li():return list(map(int,input().split())) k = Ii() a = input() m = len(a) if k > m: print(a) else: print(a[:k],end="") print('...')
def Ii():return int(input()) def Mi():return map(int,input().split()) def Li():return list(map(int,input().split())) k = Ii() a = input() m = len(a) if k >= m: print(a) else: print(a[:k],end="") print('...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,449
393,450
u726823037
python
p02676
k = int(input()) l = str(input()) if k == len(l): print(l) else: print(l[0:k]+"...")
k = int(input()) l = str(input()) if k >= len(l): print(l) else: print(l[:k]+"...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change" ]
393,493
393,494
u055875839
python
p02676
k=int(input()) s=input() if len(s)<=k: print(s) else: print(s[1:k+1]+"...")
k=int(input()) s=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", "expression.operation.binary.remove" ]
393,497
393,498
u367147039
python
p02676
k=input() str=input() if len(str)>=int(k): print(str[:int(k)]+'...') else: print(str)
k=input() str=input() if len(str)>int(k): print(str[:int(k)]+'...') else: print(str)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,499
393,500
u136284779
python
p02676
k=input() str=input() if len(str)>=int(k): print(str[:int(k)]+'...') else: print(str)
k=input() str=input() if len(str)>int(k): print(str[:int(k)]+'...') else: print(str)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,499
393,501
u136284779
python
p02676
k = int(input()) s = input() if len(s) > 7: print("{}...".format(s)) else: print(s)
k = int(input()) s = input() if len(s) > k: print("{}...".format(s[0:k])) else: print(s)
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
393,510
393,511
u167681994
python
p02676
k = input() s = input() if int(k) > len(s): print(s) else: print(s[:int(k)]+'...')
k = input() s = input() if int(k) >= len(s): print(s) else: print(s[:int(k)]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,520
393,521
u342062419
python
p02676
k=int(input()) s=str(input()) if len(s)<=k: print(s) exit() else: print(s[0:k-1]+"...")
k=int(input()) s=str(input()) if len(s)<=k: print(s) exit() else: print(s[0:k]+"...")
[ "expression.operation.binary.remove" ]
393,522
393,523
u944886577
python
p02676
nb = int(input()) sentence = input() if len(sentence) > nb: print(sentence[0:nb-1] + '...') else: print(sentence)
nb = int(input()) sentence = input() if len(sentence) > nb: print(sentence[0:nb] + '...') else: print(sentence)
[ "expression.operation.binary.remove" ]
393,529
393,530
u785354231
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.operation.binary.add" ]
393,537
393,538
u212242633
python
p02676
import sys k = int(sys.stdin.readline().rstrip()) s = sys.stdin.readline().rstrip() l = len(s) if l < k: print(s) else: print(s[:k] + "...")
import sys k = int(sys.stdin.readline().rstrip()) s = sys.stdin.readline().rstrip() l = len(s) if l <= k: print(s) else: print(s[:k] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,561
393,562
u200916944
python
p02676
import sys input = sys.stdin.readline #input = sys.stdin.buffer.readline #sys.setrecursionlimit(10**9) #from functools import lru_cache def RD(): return sys.stdin.read() def II(): return int(input()) def MI(): return map(int,input().split()) def MF(): return map(float,input().split()) def LI(): return list(map(int,i...
import sys input = sys.stdin.readline #input = sys.stdin.buffer.readline #sys.setrecursionlimit(10**9) #from functools import lru_cache def RD(): return sys.stdin.read() def II(): return int(input()) def MI(): return map(int,input().split()) def MF(): return map(float,input().split()) def LI(): return list(map(int,i...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,569
393,570
u477977638
python
p02676
import sys input = sys.stdin.readline #input = sys.stdin.buffer.readline #sys.setrecursionlimit(10**9) #from functools import lru_cache def RD(): return sys.stdin.read() def II(): return int(input()) def MI(): return map(int,input().split()) def MF(): return map(float,input().split()) def LI(): return list(map(int,i...
import sys input = sys.stdin.readline #input = sys.stdin.buffer.readline #sys.setrecursionlimit(10**9) #from functools import lru_cache def RD(): return sys.stdin.read() def II(): return int(input()) def MI(): return map(int,input().split()) def MF(): return map(float,input().split()) def LI(): return list(map(int,i...
[ "control_flow.branch.if.condition.change" ]
393,571
393,570
u477977638
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" ]
393,572
393,573
u729119068
python
p02676
s = int(input()) t = input() if len(t) < s: print(t) else : tt = t[0:s] print(tt + "...")
s = int(input()) t = input() if len(t) <= s: print(t) else : tt = t[0:s] print(tt + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,577
393,575
u667937724
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" ]
393,578
393,579
u082861480
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[0:K] + "...") else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "call.arguments.change" ]
393,589
393,590
u294490207
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" ]
393,591
393,590
u294490207
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" ]
393,596
393,597
u609176437
python
p02676
k = int(input()) s = str(input()) l = len (s) if k < l: s = s[0:k] print(s,"...") else: print(s)
k = int(input()) s = str(input()) l = len (s) if k < l: s = s[0:k] print(s+"...") else: print(s)
[ "call.arguments.change", "io.output.change" ]
393,605
393,606
u133240057
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" ]
393,614
393,615
u509029769
python
p02676
K = int(input()) S = input() cnt = '...' if len(S) <= K: print(S) else: print(S[:7] + str(cnt))
K = int(input()) S = input() cnt = '...' if len(S) <= K: print(S) else: print(S[:K] + str(cnt))
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,616
393,617
u993622994
python
p02676
K = int(input()) S = input() cnt = '...' if len(S) < K: print(S) else: print(S[:7] + str(cnt))
K = int(input()) S = input() cnt = '...' if len(S) <= K: print(S) else: print(S[:K] + str(cnt))
[ "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" ]
393,618
393,617
u993622994
python
p02676
K = int(input()) S = str(input()) deffirence = len(S) - K if deffirence > 0: print(S[0: K:]) else: print(S)
K = int(input()) S = str(input()) deffirence = len(S) - K if deffirence > 0: print(S[0: K:] + '...') else: print(S)
[ "expression.operation.binary.add" ]
393,625
393,626
u485819963
python
p02676
K = int(input()) S = input() if(len(S)>K): for i in range(K): print(S[i],end="") print(". . .") else: print(S)
K = int(input()) S = input() if(len(S)>K): for i in range(K): print(S[i],end="") print("...") else: print(S)
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
393,627
393,628
u695474809
python
p02676
K = int(input()) S = input() if(len(S)>K): for i in range(K): print(S[i],end="") print("…") else: print(S)
K = int(input()) S = input() if(len(S)>K): for i in range(K): print(S[i],end="") print("...") else: print(S)
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
393,629
393,628
u695474809
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" ]
393,633
393,634
u291543340
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)
[ "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" ]
393,635
393,634
u291543340
python
p02676
K=int(input()) S=input() if len(S)<=K: print(S) else: T=[] S=list(S) for i in range(K): T.append(S[i]) K="".join(T) print(K,"...")
K=int(input()) S=input() if len(S)<=K: print(S) else: T=[] S=list(S) for i in range(K): T.append(S[i]) K="".join(T) print(K+"...")
[ "call.arguments.change", "io.output.change" ]
393,657
393,658
u891202624
python
p02676
k = int(input()) s = str(input()) if k < len(s): ans = s[0:k+1]+'...' print(ans) else: print(s)
k = int(input()) s = str(input()) if k < len(s): ans = s[0:k]+'...' print(ans) else: print(s)
[ "expression.operation.binary.remove" ]
393,667
393,668
u805852597
python
p02676
K = int(input()) S = input() L = len(S) print(S if K >= L else S[:L] + '...')
K = int(input()) S = input() L = len(S) print(S if K >= L else S[:K] + '...')
[ "identifier.change", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,680
393,681
u706659319
python
p02676
n=int(input()) txt=input() # print(type(n)) if len(txt)<n: print(txt) else: print("%s..."%txt[:n])
n=int(input()) txt=input() # print(type(n)) if len(txt)<=n: print(txt) else: print("%s..."%txt[:n])
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,692
393,693
u207235471
python
p02676
k = int(input()) s = str(input()) if len(s) > k: print(s[:k] + '...')
k = int(input()) s = str(input()) if len(s) > k: s = s[:k] + '...' print(s)
[ "call.add" ]
393,700
393,701
u835068843
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.binary.remove" ]
393,702
393,703
u999799597
python
p02676
def answer(k:int, s:str) -> str: if len(s) <= k: return s else: return s[:(k-1)] + '...' k = int(input()) s = input() print(answer(k, s))
def answer(k:int, s:str) -> str: if len(s) <= k: return s else: return s[:k] + '...' k = int(input()) s = input() print(answer(k, s))
[]
393,706
393,707
u197525404
python
p02676
# S の長さが K 以下であれば、S をそのまま出力してください。 # S の長さが K を上回っているならば、 # 先頭 K 文字だけを切り出し、末尾に ... を付加して出力してください。 # K は 1 以上 100 以下の整数 # S は英小文字からなる文字列 # S の長さは 1 以上 100 以下 K = int(input()) S = str(input()) if K >= len(S): print(K) else: print((S[0:K] + '...'))
# S の長さが K 以下であれば、S をそのまま出力してください。 # S の長さが K を上回っているならば、 # 先頭 K 文字だけを切り出し、末尾に ... を付加して出力してください。 # K は 1 以上 100 以下の整数 # S は英小文字からなる文字列 # S の長さは 1 以上 100 以下 K = int(input()) S = str(input()) if K >= len(S): print(S) else: print((S[0:K] + '...'))
[ "identifier.change", "call.arguments.change", "io.output.change" ]
393,708
393,709
u261696185
python
p02676
n = int(input()) if n < 1 or n > 100: exit() n1 = input() i = len(n1) if i < 1 or i > 100: exit() n2 = '...' if n > i: print(n1) else: print(n1[:n] + n2)
n = int(input()) if n < 1 or n > 100: exit() n1 = input() i = len(n1) if i < 1 or i > 100: exit() n2 = '...' if n >= i: print(n1) else: print(n1[:n] + n2)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,714
393,715
u556477263
python
p02676
K = int(imput()) S = imput() 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] + '...')
[ "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change" ]
393,729
393,730
u947123009
python
p02676
#K is an input for the range of S #input from user to get lowercase the letters K = int(input()) S = input() if len(S) > K: print(S[:K] + ".....") else: print(S)
#K is an input for the range of S #input to get lowercase the letters from users K = int(input()) S = input() if len (S) > K: print(S[:K] + "...") else: print(S)
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,741
393,743
u816631826
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.operation.binary.add" ]
393,744
393,745
u486209657
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" ]
393,748
393,749
u856564576
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" ]
393,753
393,757
u781267013
python
p02676
K = int(input()) S = int(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] + '...')
[ "assignment.value.change", "identifier.change", "call.function.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,755
393,757
u781267013
python
p02676
K = int(input()) S = 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] + '...')
[ "call.add", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,756
393,757
u781267013
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] + "...")
[ "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" ]
393,758
393,759
u434630332
python
p02676
''' 問題: 英小文字からなる文字列 S があります。 S の長さが K 以下であれば、Sをそのまま出力してください。 S の長さが K を上回っているならば、先頭 K 文字だけを切り出し、 末尾に ... を付加して出力してください。 ''' ''' 制約: K は 1 以上 100 以下の整数 S は英小文字からなる文字列 S の長さは 1 以上 100 以下 ''' # 標準入力からK, S を取得する k = int(input()) s = str(input()) result = "" if len(s) <= k: result = s els...
''' 問題: 英小文字からなる文字列 S があります。 S の長さが K 以下であれば、Sをそのまま出力してください。 S の長さが K を上回っているならば、先頭 K 文字だけを切り出し、 末尾に ... を付加して出力してください。 ''' ''' 制約: K は 1 以上 100 以下の整数 S は英小文字からなる文字列 S の長さは 1 以上 100 以下 ''' # 標準入力からK, S を取得する k = int(input()) s = str(input()) result = "" if len(s) <= k: result = s els...
[ "expression.operation.binary.remove" ]
393,767
393,768
u098994567
python
p02676
# B - ... (Triple Dots) # K K = int(input()) # S S = input() if K > len(S): answer = S else: answer = S[0:K] + '...' print(answer)
# B - ... (Triple Dots) # K K = int(input()) # S S = input() if K >= len(S): answer = S else: answer = S[0:K] + '...' print(answer)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,769
393,770
u010072501
python
p02676
K = int(input()) S = str(input()) SK = S[0 : (K)] if len(S) <= K: answer = S else: print(SK + '...')
K = int(input()) S = str(input()) SK = S[0 : (K)] if len(S) <= K: print(S) else: print(SK + '...')
[ "call.arguments.change" ]
393,771
393,772
u733837151
python
p02676
k=int(input()) s=input() if len(s)<=k: print(s) else: print(s+"...")
k=int(input()) s=input() #if len(s)<=k: # print(s) #else: #print(s+"...") #########他人のコピー######### if len(s)<=k: print(s) else: print(s[:k] + '...') #########他人のコピー#########
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,773
393,774
u268314634
python
p02676
#168b #値を受け取る K = int(input()) S = str(input()) #Kになるまで文字を取り、K以降の文字列は'…'で表す def answer(K: int, S: str) -> str: if len(S) <= K: return S else: return S[K:] + '...' print(answer(K, S))
#168b #値を受け取る K = int(input()) S = str(input()) #Kになるまで文字を取り、K以降の文字列は'…'で表す def answer(K: int, S: str) -> str: if len(S) <= K: return S else: return S[:K] + '...' print(answer(K, S))
[ "function.return_value.change" ]
393,778
393,779
u681502232
python
p02676
length=int(input()) s=input() string = "" if len(s) < length: print(s) else: for i in range(0,length): string += s[i] string +="..." print(string)
length=int(input()) s=input() string = "" if len(s) <= length: print(s) else: for i in range(0,length): string += s[i] string +="..." print(string)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,782
393,783
u297447724
python
p02676
K = int(input()) S = input() words = int(len(S)) if K <= words: print(S[0:K] + "...") else: print(S)
K = int(input()) S = input() words = int(len(S)) if K < words: print(S[0:K] + "...") else: print(S)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,788
393,789
u155251346
python
p02676
K = int(input()) S = input() if len(str(S)) < K: print(S) else: print(S[:K]+'...')
# 168 B K = int(input()) S = input() if len(str(S)) <= K: print(S) else: print(S[:K]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,802
393,801
u365491796
python
p02676
def ac_168b(K: int, S: str) -> str: if len(S) <= K: return S else: return S[0:K] + "..." K = input() S = input() print(ac_168b(K, S))
def ac_168b(K: int, S: str) -> str: if len(S) <= K: return S else: return S[0:K] + "..." K = int(input()) S = input() print(ac_168b(K, S))
[ "call.add", "call.arguments.change" ]
393,811
393,812
u053535689
python
p02676
K = int(input()) S = input() length = len(S) if length <= K: print(S) else: S = S[K:] print(S + "...")
K = int(input()) S = input() length = len(S) if length <= K: print(S) else: S = S[:K] print(S + "...")
[]
393,816
393,817
u244466744
python
p02676
k,s=open(0);k=int(k);print(s[:k]+'...'*(k<len(s)))
k,s=open(0);k=int(k);print(s[:k]+'...'*(k<~-len(s)))
[]
393,824
393,825
u331606500
python
p02676
k,s=open(0);k=int(k);print(s[:k]+'...'*(k<len(s)))
k,s=open(0);k=int(k);print(s[:k]+'...'*(-~k<len(s)))
[]
393,824
393,826
u331606500
python
p02676
k = int(input()) s = input() l = len(s) if k > l: print(s) else: print(s[0:k] + "...")
k = int(input()) s = input() l = len(s) if k >= l: print(s) else: print(s[0:k] + "...")
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,831
393,832
u924828749
python
p02676
K=int(input()) S=input() if len(S) > K: S = S[:7] S += "..." print(S)
K=int(input()) S=input() if len(S) > K: S = S[:K] S += "..." print(S)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change" ]
393,833
393,834
u344276999
python
p02676
a=input() a=int(a) b=input() c="" if a>=len(b): print(b) else: for i in range(a): c=c+b[i] print(c)
a=input() a=int(a) b=input() c="" if a>=len(b): print(b) else: for i in range(a): c=c+b[i] print(c+"...")
[ "expression.operation.binary.add" ]
393,839
393,840
u244836567
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 K >= N: print(S) else: print(S[:K]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,852
393,853
u768636516
python
p02676
def resolve(): K = int(input()) S = input() print(S if len(S) < K else S[:K]+"...") if '__main__' == __name__: resolve()
def resolve(): K = int(input()) S = input() print(S if len(S) <= K else S[:K]+"...") if '__main__' == __name__: resolve()
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
393,854
393,855
u106797249
python
p02676
K=int(input()) S=input() if len(S) <= K : print(S) else: print(S[:K],'...',end='')
K=int(input()) S=input() if len(S) <= K : print(S) else: print(S[:K]+'...',end='')
[ "call.arguments.change", "io.output.change" ]
393,858
393,859
u021086907
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]+'...')
[ "misc.typo", "identifier.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,860
393,861
u244434589
python
p02676
n = int(input()) s = input() if len(s) > n: print(s[:n] + '...')
n = int(input()) s = input() if len(s) > n: print(s[:n] + '...') else: print(s)
[ "call.add" ]
393,864
393,865
u328510800
python
p02676
K = input() S = input() LS = len(S) IK = int(K) if LS < IK: print(S) elif LS > IK: print(S[0:IK] + '...')
K = input() S = input() LS = len(S) IK = int(K) if LS <= IK: print(S) elif LS > IK: print(S[0:IK] + '...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,868
393,869
u498531348
python
p02676
K = int(input()) S = input() print(S[:K]+"..." if len(S) >= K else S)
K = int(input()) S = input() print(S[:K]+"..." if len(S) > K else S)
[ "expression.operator.compare.change", "call.arguments.change", "io.output.change" ]
393,870
393,871
u543173218
python
p02676
k = int(input()) s = input() print(s if len(s) <= k else s+"...")
k = int(input()) s = input() print(s if len(s) <= k else s[:k] +"...")
[]
393,876
393,877
u626228246
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]+'...')
[ "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,878
393,879
u446711904
python
p02676
K=int(input()) S=input() if len(S)<=K: print(S) else: a=S[:7] a=a+'...' print(a)
K=int(input()) S=input() if len(S)<=K: print(S) else: a=S[:K] a=a+'...' print(a)
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change" ]
393,884
393,885
u917558625
python
p02676
K=int(input()) S=input() if len(S)<=7: print(S) else: a=S[:7] a=a+'...' print(a)
K=int(input()) S=input() if len(S)<=K: print(S) else: a=S[:K] a=a+'...' print(a)
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change", "assignment.value.change", "variable_access.subscript.index.change" ]
393,886
393,885
u917558625
python
p02676
k = int(input()) s = input() s_list = list(s)#文字列をリストに long = len(s_list) if(long <= k): print(k) else: print(''.join(s_list[:k])+'...')
k = int(input()) s = input() s_list = list(s)#文字列をリストに long = len(s_list) if(long <= k): print(s) else: print(''.join(s_list[:k])+'...')
[ "identifier.change", "call.arguments.change", "io.output.change" ]
393,887
393,888
u405137387
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" ]
393,918
393,919
u465101448
python
p02676
S = int(input()) K = 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]+'...')
[ "assignment.variable.change", "identifier.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,920
393,919
u465101448
python
p02676
k = int(input()) s = input() if len(s) >= k: print(s[:k], '...', sep='') else: print(s)
k = int(input()) s = input() if len(s) > k: print(s[:k], '...', sep='') else: print(s)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,927
393,928
u095403885
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" ]
393,935
393,936
u088821409
python
p02676
K = int(input()) S = input() l = len(S) if l <= K: print(S) else: print(S[:K] + '…')
K = int(input()) S = input() l = len(S) if l <= K: print(S) else: print(S[:K] + '...')
[ "literal.string.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
393,945
393,946
u192165179
python
p02676
K = int(input()) S = input() l = len(S) if l <= K: print(S) else: print(S[:K])
K = int(input()) S = input() l = len(S) if l <= K: print(S) else: print(S[:K] + '...')
[ "expression.operation.binary.add" ]
393,947
393,946
u192165179
python
p02676
k = int(input()) s = input() sl = len(s) if k > sl: print(s) else: print(s[0:k]+'...')
k = int(input()) s = input() sl = len(s) if k >= sl: print(s) else: print(s[0:k]+'...')
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
393,957
393,958
u663263525
python
p02676
n=int(input()) s=input() while len(s)<n: s=s[:n]+"..." print(s)
n=int(input()) s=input() if len(s)>n: s=s[:n]+"..." print(s)
[ "control_flow.branch.while.replace.add", "control_flow.loop.if.replace.remove", "misc.opposites", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
393,970
393,971
u259957186
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" ]
393,974
393,975
u378332068
python