File tree Expand file tree Collapse file tree 3 files changed +37
-3
lines changed
project_euler/problem_009 Expand file tree Collapse file tree 3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // 使用 IntelliSense 了解相关属性。
3
+ // 悬停以查看现有属性的描述。
4
+ // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "name" : " Python: Current File" ,
9
+ "type" : " debugpy" ,
10
+ "request" : " launch" ,
11
+ "program" : " ${file}" ,
12
+ "console" : " integratedTerminal" ,
13
+ "justMyCode" : true ,
14
+ "env" : {
15
+ "PYTHONPATH" : " ${workspaceFolder}"
16
+ }
17
+ },
18
+ {
19
+ "name" : " Python: Module" ,
20
+ "type" : " debugpy" ,
21
+ "request" : " launch" ,
22
+ "module" : " ${fileBasenameNoExtension}" ,
23
+ "console" : " integratedTerminal"
24
+ },
25
+ {
26
+ "name" : " PowerShell: Launch Current File" ,
27
+ "type" : " PowerShell" ,
28
+ "request" : " launch" ,
29
+ "script" : " ${file}" ,
30
+ "args" : []
31
+ }
32
+ ]
33
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"githubPullRequests.ignoredPullRequestBranches" : [
3
3
" master"
4
- ]
4
+ ],
5
+ "python.analysis.typeCheckingMode" : " standard"
5
6
}
Original file line number Diff line number Diff line change 15
15
References:
16
16
- https://en.wikipedia.org/wiki/Pythagorean_triple
17
17
"""
18
-
18
+ import timeit
19
19
20
20
def solution () -> int :
21
21
"""
@@ -63,7 +63,7 @@ def benchmark() -> None:
63
63
"""
64
64
Benchmark code comparing two different version function.
65
65
"""
66
- import timeit
66
+
67
67
68
68
print (
69
69
timeit .timeit ("solution()" , setup = "from __main__ import solution" , number = 1000 )
You can’t perform that action at this time.
0 commit comments