code
import sys import codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) x=int(input()) for i in range(1,x+1): for j in range(1,x+1): if j==x: if i*j>9: print(f"{j}×{i}="+str(i*j)) else: print(f"{j}x{i}=",i*j) elif i*j>9: print(f"{j}×{i}="+str(i*j),end=" ") else: print(f"{j}x{i}=",i*j,end=" ")
您的答案為: 1x3= 3 2x3= 6 3x3= 9 4×3=12 正確答案為: 1x3= 3 2x3= 6 3x3= 9 4x3=12
通過檢測
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 6×2=12 7×2=14 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10 6x2=12 7x2=14
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 6×2=12 7×2=14 8×2=16 9×2=18 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10 6x2=12 7x2=14 8x2=16 9x2=18
code
import sys import codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) x=int(input()) for i in range(1,x+1): for j in range(1,x+1): if j==x: if i*j>9: print(f"{j}×{i}="+str(i*j)) else: print(f"{j}x{i}=",i*j) elif i*j>9: print(f"{j}×{i}="+str(i*j),end=" ") else: print(f"{j}x{i}=",i*j,end=" ")#0: 20% WA (line:3)
您的答案為: 1x3= 3 2x3= 6 3x3= 9 4×3=12 正確答案為: 1x3= 3 2x3= 6 3x3= 9 4x3=12#1: 20% AC (19ms, 3.3MB)
通過檢測#2: 20% WA (line:2)
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10#3: 20% WA (line:2)
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 6×2=12 7×2=14 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10 6x2=12 7x2=14#4: 20% WA (line:2)
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 6×2=12 7×2=14 8×2=16 9×2=18 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10 6x2=12 7x2=14 8x2=16 9x2=18
字元 U+00d7
"×
" 可能與字元 U+0078
"x
" 混淆,這在原始程式碼中比較常見。
你的乘號用錯了 xd
code
import sys import codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) x=int(input()) for i in range(1,x+1): for j in range(1,x+1): if j==x: if i*j>9: print(f"{j}×{i}="+str(i*j)) else: print(f"{j}x{i}=",i*j) elif i*j>9: print(f"{j}×{i}="+str(i*j),end=" ") else: print(f"{j}x{i}=",i*j,end=" ")#0: 20% WA (line:3)
您的答案為: 1x3= 3 2x3= 6 3x3= 9 4×3=12 正確答案為: 1x3= 3 2x3= 6 3x3= 9 4x3=12#1: 20% AC (19ms, 3.3MB)
通過檢測#2: 20% WA (line:2)
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10#3: 20% WA (line:2)
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 6×2=12 7×2=14 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10 6x2=12 7x2=14#4: 20% WA (line:2)
您的答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5×2=10 6×2=12 7×2=14 8×2=16 9×2=18 正確答案為: 1x2= 2 2x2= 4 3x2= 6 4x2= 8 5x2=10 6x2=12 7x2=14 8x2=16 9x2=18字元
U+00d7
"×
" 可能與字元U+0078
"x
" 混淆,這在原始程式碼中比較常見。你的乘號用錯了 xd
佬