-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAtCoder_quiz_2.py
More file actions
72 lines (72 loc) · 1.65 KB
/
AtCoder_quiz_2.py
File metadata and controls
72 lines (72 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "AtCoder_quiz_2.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyPuen92sj3EHAWU7Da74QN0",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/taqro/code-write-everyday/blob/master/AtCoder_quiz_2.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "59MMvEpf4q7r",
"outputId": "05f44739-c307-4ace-ecda-bf9c1ba7186f"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"0\n",
"40\n"
]
}
],
"source": [
"# 入力\n",
"X = int(input())\n",
"\n",
"res = 0\n",
"if X < 40:\n",
" res = 40 - X\n",
" print(res)\n",
"elif 40 <= X < 70:\n",
" res = 70 - X\n",
" print(res)\n",
"elif 70 <= X < 90:\n",
" res = 90 - X\n",
" print(res)\n",
"else:\n",
" print(\"expert\")\n",
"\n",
"\n",
"\n"
]
}
]
}