結果

問題 No.933 おまわりさんこいつです
ユーザー kappybarkappybar
提出日時 2020-03-26 10:59:07
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 514 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 266,116 KB
最終ジャッジ日時 2023-08-30 12:12:32
合計ジャッジ時間 7,748 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
75,396 KB
testcase_01 AC 72 ms
71,288 KB
testcase_02 AC 73 ms
71,056 KB
testcase_03 AC 73 ms
71,056 KB
testcase_04 AC 73 ms
71,024 KB
testcase_05 AC 75 ms
71,052 KB
testcase_06 AC 74 ms
71,364 KB
testcase_07 AC 73 ms
71,412 KB
testcase_08 AC 74 ms
71,284 KB
testcase_09 AC 74 ms
71,276 KB
testcase_10 AC 74 ms
71,324 KB
testcase_11 AC 79 ms
76,116 KB
testcase_12 AC 80 ms
75,984 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 102 ms
86,648 KB
testcase_18 AC 73 ms
71,480 KB
testcase_19 AC 194 ms
90,244 KB
testcase_20 RE -
testcase_21 AC 74 ms
71,352 KB
testcase_22 AC 74 ms
71,176 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = list(map(int,input().split()))
ans = 1
for i in p:
    ans *= i

now = 0
ans = str(ans)
for i in ans:
    now += int(i)
    if now == 10:
        now = 1
    elif now == 11:
        now = 2
    elif now ==12:
        now = 3
    elif now ==13:
        now = 4
    elif now ==14:
        now =5
    elif now ==15:
        now = 6
    elif now ==16:
        now = 7
    elif now == 17:
        now = 8
    elif now ==18:
        now = 9
    elif now ==19:
        now = 1
            
print(now)
0