# 飢餓 ```=C++ #include<iostream> using namespace std; int main(){ int n; cin>>n; int ans=0; if(n%5==0){ ans=500; } else if(n%2==0){ ans=200; } else{ ans=100; } if(n>=123){ ans=ans+30; } cout<<ans; return 0; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up