File tree 1 file changed +60
-0
lines changed
1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments