-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10_yen_stamp.py
More file actions
63 lines (63 loc) · 1.47 KB
/
10_yen_stamp.py
File metadata and controls
63 lines (63 loc) · 1.47 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
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "10_yen_stamp.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyOt0LT1b7e8mnUenT6eh894",
"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/10_yen_stamp.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": "0mjud_pfMB9a",
"outputId": "5a30108c-83ee-4434-da02-236c68b8a414"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"1000 63\n",
"0\n"
]
}
],
"source": [
"X, Y = map(int, input().split())\n",
"\n",
"ans = 0\n",
"for i in range(1000):\n",
" if Y <= X + 10 * i:\n",
" ans = i\n",
" break\n",
" \n",
"print(ans)"
]
}
]
}