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?

More than 5 years have passed since last update.

10/30勉強会

Posted at

#AtCoderで解いた問題
9×9
curtain
Odds of Oddness

#学んだ文法

a, b=map(int, input().split())

1行に複数の整数の入力を取得し、整数として出力する

if a>=1 and 9>=a and b>=1 and 9>=b:
    print(a * b)
 else:
    print(-1)

条件を判断して処理を分岐させる

#感想
Pythonは聞いたことがあるだけで一度も使ったことがなかった。
実際に少し触ってみて、C言語やjavaと大きくは変わらない上に、慣れれば扱いやすい言語なので今後もっとPythonを習得していきたい。

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?