結果
| 問題 | No.432 占い(Easy) |
| コンテスト | |
| ユーザー |
ixmel
|
| 提出日時 | 2017-04-07 16:43:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 494 ms / 2,000 ms |
| コード長 | 182 bytes |
| 記録 | |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-16 00:34:43 |
| 合計ジャッジ時間 | 3,837 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
n=int(input())
for _ in range(n):
a=input()
while len(a)!=1:
b=""
for i in range(len(a)-1):
t=ord(a[i])+ord(a[i+1])-2*ord('0')
b+=chr(t%10+t//10+ord('0'))
a=b
print(a)
ixmel