結果

問題 No.933 おまわりさんこいつです
ユーザー 💕💖💞💕💖💞
提出日時 2019-12-25 23:21:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 281 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 23,600 KB
最終ジャッジ日時 2024-04-08 20:28:13
合計ジャッジ時間 4,659 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 28 ms
9,984 KB
testcase_02 AC 28 ms
9,984 KB
testcase_03 AC 29 ms
9,984 KB
testcase_04 AC 28 ms
9,984 KB
testcase_05 AC 28 ms
9,984 KB
testcase_06 AC 27 ms
9,984 KB
testcase_07 AC 28 ms
9,984 KB
testcase_08 AC 27 ms
9,984 KB
testcase_09 AC 28 ms
9,984 KB
testcase_10 AC 27 ms
9,984 KB
testcase_11 AC 28 ms
9,984 KB
testcase_12 AC 28 ms
10,112 KB
testcase_13 AC 30 ms
10,368 KB
testcase_14 AC 31 ms
10,496 KB
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 WA -
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 28 ms
9,984 KB
testcase_22 AC 28 ms
9,984 KB
testcase_23 RE -
testcase_24 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
xs=list(map(int,input().split()))
a=1
for x in xs:
    if x%9 != 0:
        a*= (x%9) #数字根の性質で Nの数字根 = N%9の数字根
    else:
        a*= 9

a = str(a)
a = sum([int(a0) for a0 in list(a)])

if int(a)%9 == 0:
    print(9)
else:
    print(a%9)
0