結果
| 問題 | No.933 おまわりさんこいつです |
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-10-15 23:16:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 85,560 KB |
| 実行使用メモリ | 96,460 KB |
| 最終ジャッジ日時 | 2026-04-03 02:19:28 |
| 合計ジャッジ時間 | 3,317 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 WA * 18 |
ソースコード
import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
N=I()
P=LI()
def ch(x):
temp=0
while x!=0:
temp+=x%10
x=x//10
return temp
ans=0
for i in range(N):
P[i]=ch(P[i])
ans+=P[i]
while ans>=10:
ans=ch(ans)
print(ans)
main()
uni_python