結果
| 問題 | No.933 おまわりさんこいつです | 
| コンテスト | |
| ユーザー | 👑 | 
| 提出日時 | 2025-03-01 20:26:44 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 233 bytes | 
| コンパイル時間 | 410 ms | 
| コンパイル使用メモリ | 82,220 KB | 
| 実行使用メモリ | 93,268 KB | 
| 最終ジャッジ日時 | 2025-03-01 20:26:48 | 
| 合計ジャッジ時間 | 2,756 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 7 WA * 18 | 
ソースコード
N = int(input())
P = list(map(int, input().split()))
ans = 0
while True:
    for p in P:
        ans += sum(int(_p) for _p in str(p))
    
    if 0 <= ans < 10:
        break
    else:
        P = [ans]
        ans = 0
print(ans)
            
            
            
        