結果

問題 No.432 占い(Easy)
ユーザー 👑 yumechiyumechi
提出日時 2019-12-24 20:43:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 944 ms
コンパイル使用メモリ 81,804 KB
実行使用メモリ 66,140 KB
最終ジャッジ日時 2023-10-23 17:49:19
合計ジャッジ時間 3,660 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
53,532 KB
testcase_01 AC 39 ms
53,532 KB
testcase_02 AC 39 ms
53,532 KB
testcase_03 AC 40 ms
53,532 KB
testcase_04 AC 45 ms
59,380 KB
testcase_05 AC 39 ms
53,532 KB
testcase_06 AC 41 ms
53,532 KB
testcase_07 AC 42 ms
59,380 KB
testcase_08 AC 39 ms
53,532 KB
testcase_09 AC 64 ms
65,948 KB
testcase_10 AC 49 ms
61,396 KB
testcase_11 AC 47 ms
61,432 KB
testcase_12 AC 51 ms
66,140 KB
testcase_13 AC 52 ms
66,140 KB
testcase_14 AC 47 ms
61,432 KB
testcase_15 AC 39 ms
53,532 KB
testcase_16 AC 40 ms
53,532 KB
testcase_17 AC 52 ms
66,140 KB
testcase_18 AC 48 ms
63,748 KB
testcase_19 AC 47 ms
61,588 KB
testcase_20 AC 46 ms
61,496 KB
testcase_21 AC 46 ms
61,576 KB
testcase_22 AC 49 ms
61,396 KB
testcase_23 AC 54 ms
61,676 KB
testcase_24 AC 63 ms
65,948 KB
testcase_25 AC 63 ms
65,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(d):
  l = len(d)
  if l == 1:
    return d[0]
  return f([(d[i]+d[i+1])//10+(d[i]+d[i+1])%10 for i in range(l-1)])

for _ in range(int(input())):
  print(f([int(i) for i in input()]))
0