結果
問題 | No.432 占い(Easy) |
ユーザー |
![]() |
提出日時 | 2019-05-20 02:27:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 193 ms / 2,000 ms |
コード長 | 420 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-17 06:38:01 |
合計ジャッジ時間 | 2,247 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 |
ソースコード
N = int(input())fortunes = ([int(x) for x in input()] for y in range(N))results = []for fo in fortunes:lst = fowhile len(lst) != 1:tmp = []for idx in range(len(lst) - 1):num = lst[idx] + lst[idx + 1]if num >= 10:num = num // 10 + num % 10tmp.append(num)lst = tmpresults.append(lst[0])print("\n".join(map(str,results)))