結果
| 問題 |
No.1168 Digit Sum Sequence
|
| コンテスト | |
| ユーザー |
match1997
|
| 提出日時 | 2020-09-07 12:46:22 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-11-29 10:26:34 |
| 合計ジャッジ時間 | 2,208 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 WA * 10 |
ソースコード
N = int(input())
def fun(N):
for i in range(10):
if N % (10**i) != N:
x = i+1
a = 0
c = 0
for j in range(1,x+1):
a = int(((N-a) % (10**j)) / 10**(j-1))
b = a
c = b + c
#print(c)
return c
if N < 10:
print(N)
if fun(N) > 10:
print(fun(fun(N)) )
match1997