0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ABC372参加記録 by Python

Posted at

リアルタイムに解けた問題

A - delete .

問題文

英小文字および.からなる文字列$S$が与えらます。$S$から.を全て削除した文字列を求めてください。

制約

  • $S$は英小文字および.からなる長さ1以上100以下の文字列

アルゴリズム

入力に対してループを回し、.以外のものを出力。

ソースコード

S = input()

for s in S:
  if s != '.':
    print(s, end='')

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?