竞赛
考级
#include <bits/stdc++.h> using namespace std; int main() { double a,s; char b; cin>>a>>b; s=8; if(a>1000) { s=s+ceil((a-1000)/500)*4; } if(b=='y') s=s+5; cout<<s; }
176****9824
#include<bits/stdc++.h> using namespace std; int Stamp(int kg,char a){ int m=0; if (kg <= 1000){ m += 8; }else{ m += 8 + ceil((kg - 1000) / 500.0) * 4; } if (a == 'y'){ m += 5; } return m; } int main(){ int k; char f; cin>>k>>f; cout<<Stamp(k,f); return 0; }
aepecI-手射冰寒株一
#include <bits/stdc++.h> using namespace std; int main(){ int n,sum=0; char a; cin >> n >> a; }
赵奕航
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; char c; cin>>a>>c; b=8; if(a>1000){ if(a%500!=0){ a=a/500+a; } b=b+(a-1000)/500*4+4; } if (c=='y'){ b=b+5; } cout<<b; return 0; }
DEMO
星舰
#include<bits/stdc++.h>//万能头 using namespace std; int main(){ int x,a=8; char c; cin>>x>>c; if(x>1000){ x-=1000; a=a+(x/500)*4; if(x%500!=0){ a+=4; } } if(c=='y'){ a+=5; } cout<<a; return 0;//好习惯 }
醉词意
suzifeng
#include<iostream> #include<string> using namespace std; int main(){ char c; int n; cin>>n>>c; if(n<=1000){ n=8; }else if(n>=1000){ if(n%500!=0){ n=n/500500+500; n=(n-1000)/5004+8; }else{ n=(n-1000)/500*4+8; } } if(c=='y'){ n+=5; } cout<<n; return 0; }
15356889601(必互关)
#include<iostream> using namespace std; int main(){ int n,s=8,b=0; char a; cin >> n; int k=n; cin >> a; if(a=='y'){ s+=5; } if(n<=1000){ s+=8; cout << s; }else{ k-=1000; b=k/500; if(k%500>1){ b++; } s+=b*4; } cout << s; return 0; }
爱吃的圆吨吨
「欢愉」花火
a = input() s = a.split() b = int(s[0]) c = str(s[1]) money = 0 if "y" == c: money += 8 b -= 1000 if b>0: print(money)
yang(Python)
#include <iostream> #include <cmath> using namespace std; int main(){ int a,c=0; char b; cin>>a>>b; if (a<=1000){ if (b=='y') c+=13; if (b=='n') c+=8; } if (a>1000 && a<=1500 ){ if (b=='y') c+=17; if (b=='n') c+=12; } if (a>1500) {a=(a-1000)/500; ceil(a); a=a+1; a=a*4+8; if (b=='y') c+=a+5; if (b=='n') c+=a; } cout<<c; }
134****6246
#include<bits/stdc++.h> using namespace std; int main() { int n; char c; cin>>n>>c; if(c=='n') { if(n<=1000) { cout<<8; } else{ cout<<((n-1000)/500+1)*4+8; } } else if(c=='y'){ if(n<=1000) { cout<<8+5; } else{ cout<<((n-1000)/500+1)*4+5+8; } } return 0; }
大西瓜卷王
耐高总冠军 张文杰
#include<bits/stdc++.h> using namespace std; int main(){ double n,sum; char a; cin>>n>>a; if(a=='y') sum+=5; if(n<=1000) cout<<8+sum; else { sum+=ceil((n-1000)/500)*4; cout<<8+sum; } }
~Lyney~
#include <bits/stdc++.h> using namespace std; int main(){ int m; char n; cin>>m>>n; if(n=='y'&&m>=1000&&m%500!=0){ m=((m-1000)/500+1)4+5+8; }else if(n=='y'&&m>=1000){ m=(m-1000)/504+5+8; } else if(n=='n'&&m>=1000&&m%500!=0){ m=((m-1000)/500+1)*4+8; } else if(n=='n'&&m>=1000&&m){ m=((m-1000)/500)*4+8; } cout<<m; return 0; }
黑白世界
#include<bits/stdc++.h> using namespace std; int main() { int n,z=0; char c; cin>>n>>c; if(n<1000){ z=8; } else{ z=8+ceil((n-1000)*1.0/500)*4; } if(c=='y'){
137****3768
#include <bits/stdc++.h> using namespace std; long long a,sum=8,m=0; char b; int main(){ }
LELECHA
私密马赛
准
共45条