結果
| 問題 | 
                            No.432 占い(Easy)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ixmel
                         | 
                    
| 提出日時 | 2017-04-07 16:43:35 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 496 ms / 2,000 ms | 
| コード長 | 182 bytes | 
| コンパイル時間 | 83 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-16 00:35:05 | 
| 合計ジャッジ時間 | 3,866 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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