Submission #00188


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
n, m = map(int, input().split())
while n != 0 or m != 0:
ans = [0] * 10
a = list(map(int, input().split()))
b = list(map(int, input().split()))
for i in range(n):
for j in range(m):
p = a[i]*b[j]
while p != 0:
ans[(p%10)] += 1
p = p // 10
print(*ans)
n, m = map(int, input().split())

ステータス

項目 データ
問題 0004 - nmマス計算
ユーザー名 ei2207
投稿日時 2024-03-29 13:15:05
言語 Python3
状態 Accepted
得点 20
ソースコード長 385 Byte
最大実行時間 1504 ms
最大メモリ使用量 3300 KB

セット

セット 得点 Cases
1 ALL 20 / 20 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
A1 AC 1504 ms 3264 KB
1
A2 AC 1391 ms 3232 KB
1
A3 AC 1428 ms 3300 KB
1
A4 AC 1412 ms 3280 KB
1