2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Pythonのlen関数の使い方

Posted at

1 行目で、整数 N と、続けて N 個の文字列 s_1, ... , s_N が半角スペース区切りで与えられます。s_1, ... , s_N を改行区切りで出力してください。

というpaiza問題集のプログラム問題を実装しました

# coding: utf-8
# 自分の得意な言語で
# Let's チャレンジ!!
data = input()
array1 = data.split(' ')
for i in range(1,len(array1)):
    print(array1[i])

2
2
7

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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?