Toggle navigation
New
Learn
Snippets
Meta
News
About
API Docs
Source Code
Account
Register
Login
profit by total people
main.py
dio.py
✖
tria.py
✖
tessera.py
✖
pente.py
✖
eksi.py
✖
Run Settings
Language
Python
Language Version
latest
Run Command
Snippet Metadata
Owner
pheker
Created
Modified
Visibility
Public
import math def calc(num): """ 50人(含)内3000一年,超出部分,每50人增加2千元(不足50人按50人计算) 这样的条件谁有JS计算的思路啊?主要是大于50之后的条件 """ sum = 3000 if num > 50: sum = math.ceil(num / 50 -1) * 2000 + 3000 return sum print(calc(101))
Editor Settings
Theme
Chrome
Clouds
Crimson Editor
Dawn
Dreamweaver
Eclipse
GitHub
Solarized Light
TextMate
Tomorrow
XCode
Kuroir
KatzenMilch
Ambiance
Chaos
Clouds Midnight
Cobalt
idle Fingers
krTheme
Merbivore
Merbivore Soft
Mono Industrial
Monokai
Pastel on dark
Solarized Dark
Terminal
Tomorrow Night
Tomorrow Night Blue
Tomorrow Night Bright
Tomorrow Night 80s
Twilight
Vibrant Ink
Key bindings
Default
Vim
Emacs
Full width
True
False
Lines
-
Auto
+
Direct link
Raw
Embed