結果
問題 |
No.432 占い(Easy)
|
ユーザー |
![]() |
提出日時 | 2020-09-04 10:46:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 454 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-25 04:39:33 |
合計ジャッジ時間 | 3,608 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 |
ソースコード
T = int(input().strip()) def f2(txt): tmp = int(txt[0]) + int(txt[1]) return str(tmp // 10 + tmp % 10) def f(txt): while True: if len(txt) == 1: return txt txt = ''.join([f2(txt[i:i+2]) for i in range(len(txt) - 1)]) lst = [f(input().strip()) for _ in range(T)] for i in lst: print(i)