結果
| 問題 | No.933 おまわりさんこいつです |
| コンテスト | |
| ユーザー |
双六
|
| 提出日時 | 2020-07-27 23:06:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 481 bytes |
| 記録 | |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 90,112 KB |
| 最終ジャッジ日時 | 2024-06-28 20:19:40 |
| 合計ジャッジ時間 | 2,814 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
def getlist():
return list(map(int, input().split()))
def root(N):
val = sum(list(map(int, list(str(N)))))
if val % 9 != 0:
return val % 9
else:
return val
#処理内容
def main():
N = int(input())
P = getlist()
ans = 1
for i in P:
ans *= root(i)
ans = root(ans)
print(ans)
if __name__ == '__main__':
main()
双六