結果
| 問題 |
No.432 占い(Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-06 22:11:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 233 ms / 2,000 ms |
| コード長 | 404 bytes |
| コンパイル時間 | 269 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 14,848 KB |
| 最終ジャッジ日時 | 2024-09-14 14:05:11 |
| 合計ジャッジ時間 | 2,989 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
n=int(input())
ans=[]
for k in range(n):
s=list(map(int,input()))
ls=[]
ls.append(s)
for j in range(len(ls[0])-1):
s=[]
for i in range(len(ls[j])-1):
buf=ls[j][i]+ls[j][i+1]
if buf>=10:
s.append(1+buf%10)
else:
s.append(buf)
ls.append(s)
ans.append(ls[-1][0])
for s in ans:
print(s)