結果
問題 |
No.434 占い
|
ユーザー |
|
提出日時 | 2019-07-09 15:28:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 432 bytes |
コンパイル時間 | 112 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 818,048 KB |
最終ジャッジ日時 | 2024-10-12 04:49:49 |
合計ジャッジ時間 | 3,886 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 3 WA * 1 MLE * 1 -- * 22 |
ソースコード
#!/usr/bin/python3 def regress(list_of_int): if len(list_of_int)==1: if list_of_int[0]%9==0: return 9 else: return list_of_int[0]%9 new_list=[] for i in range(len(list_of_int)-1): new_list.append(list_of_int[i]+list_of_int[i+1]) return regress(new_list) N=int(input()) for _i in range(N): in_num_list=[int(n) for n in input()] print(regress(in_num_list))