Skip to content

Commit 84cb0ed

Browse files
authored
Add files via upload
1 parent 1696d62 commit 84cb0ed

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

Diff for: 2010_플러그.ipynb

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 5,
6+
"metadata": {},
7+
"outputs": [
8+
{
9+
"name": "stdout",
10+
"output_type": "stream",
11+
"text": [
12+
"3\n",
13+
"1\n",
14+
"1\n",
15+
"1\n",
16+
"1\n"
17+
]
18+
}
19+
],
20+
"source": [
21+
"import sys\n",
22+
"\n",
23+
"n = int(input())\n",
24+
"s = 0\n",
25+
"for _ in range(n):\n",
26+
" s += int(input())\n",
27+
" #s += int(sys.stdin.readline())\n",
28+
"print(s-n+1)"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"metadata": {},
35+
"outputs": [],
36+
"source": []
37+
}
38+
],
39+
"metadata": {
40+
"kernelspec": {
41+
"display_name": "Python 3",
42+
"language": "python",
43+
"name": "python3"
44+
},
45+
"language_info": {
46+
"codemirror_mode": {
47+
"name": "ipython",
48+
"version": 3
49+
},
50+
"file_extension": ".py",
51+
"mimetype": "text/x-python",
52+
"name": "python",
53+
"nbconvert_exporter": "python",
54+
"pygments_lexer": "ipython3",
55+
"version": "3.6.8"
56+
}
57+
},
58+
"nbformat": 4,
59+
"nbformat_minor": 2
60+
}

0 commit comments

Comments
 (0)