Compare commits
2 Commits
98de782760
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f87078a87 | |||
| 9338c21449 |
@@ -1,11 +1,11 @@
|
|||||||
from time import time as tt
|
from time import time as tt
|
||||||
|
|
||||||
def fib(x:int) -> int:
|
def fib(x:int) -> int:
|
||||||
if x <= 1: return x;
|
if x <= 1: return x
|
||||||
return fib(x-1) + fib(x-2)
|
return fib(x-1) + fib(x-2)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
t0 = tt()
|
t0 = tt()
|
||||||
result = fib(30)
|
result = fib(35)
|
||||||
t1 = tt()
|
t1 = tt()
|
||||||
print('cost: ',t1-t0, 'result:', result)
|
print('cost: ',t1-t0, 'result:', result)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Fig
|
# Fig
|
||||||
|
|
||||||
|
## tmd赶工代码质量太差了暑假我要重构
|
||||||
|
|
||||||
<picture>
|
<picture>
|
||||||
<source media="(prefers-color-scheme: dark)" srcset="./Logo/LogoDark.svg">
|
<source media="(prefers-color-scheme: dark)" srcset="./Logo/LogoDark.svg">
|
||||||
<img src="./Logo/Logo.svg" alt="Fig Logo" width="200">
|
<img src="./Logo/Logo.svg" alt="Fig Logo" width="200">
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Fig
|
# Fig
|
||||||
|
|
||||||
|
## tmd赶工代码质量太差了暑假我要重构
|
||||||
|
|
||||||
<picture>
|
<picture>
|
||||||
<source media="(prefers-color-scheme: dark)" srcset="./Logo/LogoDark.svg">
|
<source media="(prefers-color-scheme: dark)" srcset="./Logo/LogoDark.svg">
|
||||||
<img src="./Logo/Logo.svg" alt="Fig Logo" width="200">
|
<img src="./Logo/Logo.svg" alt="Fig Logo" width="200">
|
||||||
|
|||||||
@@ -209,8 +209,9 @@ namespace Fig
|
|||||||
"none",
|
"none",
|
||||||
*currentFrame->proto->locations[ipIdx]));
|
*currentFrame->proto->locations[ipIdx]));
|
||||||
}
|
}
|
||||||
else
|
else [[likely]]
|
||||||
{
|
{
|
||||||
|
|
||||||
Object *obj = callee.AsObject();
|
Object *obj = callee.AsObject();
|
||||||
if (!obj->isFunction())
|
if (!obj->isFunction())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ elseif is_plat("windows") then
|
|||||||
add_ldflags("-Wl,--stack,268435456")
|
add_ldflags("-Wl,--stack,268435456")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if is_mode("release") then
|
||||||
|
set_optimize("fastest")
|
||||||
|
end
|
||||||
|
|
||||||
set_languages("c++23")
|
set_languages("c++23")
|
||||||
add_includedirs("src")
|
add_includedirs("src")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user