結果
| 問題 |
No.432 占い(Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-14 23:23:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 171 ms / 2,000 ms |
| コード長 | 238 bytes |
| コンパイル時間 | 311 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 80,256 KB |
| 最終ジャッジ日時 | 2024-11-22 10:30:18 |
| 合計ジャッジ時間 | 3,289 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
t = int(input())
def tasu(x):
if len(x) == 1: return x[0]
else:
x1 = [sum(map(int,list(str(x[i2] + x[i2+1])))) for i2 in range(len(x)-1)]
return tasu(x1)
for i in range(t):
print(tasu(list(map(int,input()))))