結果
| 問題 | No.434 占い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-09 15:34:06 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
MLE
不安定
|
| 実行時間 | - |
| コード長 | 517 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 1,305,600 KB |
| 最終ジャッジ日時 | 2026-09-14 12:24:51 |
| 合計ジャッジ時間 | 8,835 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 RE * 1 MLE * 4 -- * 14 |
ソースコード
#!/usr/bin/python3
def regress(list_of_int):
if len(list_of_int)==1:
if list_of_int[0]%9==0:
if not list_of_int[0]==0:
return 9
else:
return 0
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))