結果
| 問題 |
No.432 占い(Easy)
|
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2018-04-01 16:36:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 333 ms / 2,000 ms |
| コード長 | 587 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-26 05:28:02 |
| 合計ジャッジ時間 | 3,072 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 |
ソースコード
def solver(s):
l = s
while len(l) > 1:
_l = []
for i in range(len(l)-1):
tmp = int(l[i]) + int(l[i+1])
if tmp >= 10:
tmp = 1 + (tmp - 10)
_l.append(str(tmp))
l = _l
print(l[0])
T = int(input().strip())
for i in range(T):
solver(input().strip())
nbisco