atcoder 競プロ典型90問 052 - Dice Product(★3)2022.12.14問題052 - Dice Product(★3)AtCoder is a programming contest site for anyone from beginners to experts. We hold weekly programmi 方針 和の掛け算になることに気付けるか! pythonn = int(input()) a = [list(map(int, input().split())) for i in range(n)] ans = 1 for i in range(n): ans = ans * sum(a[i]) print(ans % (pow(10, 9) + 7))