結果

問題 No.1336 Union on Blackboard
ユーザー KudeKude
提出日時 2021-01-15 21:33:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 76,280 KB
最終ジャッジ日時 2023-08-17 16:13:48
合計ジャッジ時間 4,151 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,076 KB
testcase_01 AC 83 ms
75,984 KB
testcase_02 AC 83 ms
76,048 KB
testcase_03 AC 81 ms
76,280 KB
testcase_04 AC 82 ms
75,900 KB
testcase_05 AC 82 ms
75,900 KB
testcase_06 AC 82 ms
76,016 KB
testcase_07 AC 80 ms
76,004 KB
testcase_08 AC 84 ms
76,060 KB
testcase_09 AC 81 ms
76,248 KB
testcase_10 AC 82 ms
76,172 KB
testcase_11 AC 81 ms
76,192 KB
testcase_12 AC 84 ms
76,008 KB
testcase_13 AC 82 ms
76,256 KB
testcase_14 AC 82 ms
76,256 KB
testcase_15 AC 82 ms
76,080 KB
testcase_16 AC 81 ms
76,024 KB
testcase_17 AC 83 ms
76,036 KB
testcase_18 AC 81 ms
75,972 KB
testcase_19 AC 81 ms
76,176 KB
testcase_20 AC 81 ms
76,028 KB
testcase_21 AC 79 ms
76,180 KB
testcase_22 AC 80 ms
76,048 KB
testcase_23 AC 81 ms
76,048 KB
testcase_24 AC 82 ms
75,896 KB
testcase_25 AC 81 ms
75,960 KB
testcase_26 AC 81 ms
76,032 KB
testcase_27 AC 82 ms
76,208 KB
testcase_28 AC 81 ms
76,044 KB
testcase_29 AC 83 ms
75,824 KB
testcase_30 AC 73 ms
71,384 KB
testcase_31 AC 73 ms
70,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    input()
    ans = 0
    for a in map(int, input().split()):
        ans += a + ans * a
        ans %= 10 ** 9 + 7
    print(ans)
0