結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2021-04-09 21:51:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 166 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 42,304 KB |
最終ジャッジ日時 | 2024-06-25 05:06:51 |
合計ジャッジ時間 | 3,754 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 WA * 6 RE * 1 |
ソースコード
s=input() b=[] if len(s)==1: print(s) for i in range(len(s)-1): if s[i]!=s[i+1]: b.append(s[i]) if s[-1]!=s[-2]: b.append(s[-1]) print(''.join(b))