提交时间:2024-09-22 21:45:51
运行 ID: 51603
#include<bits/stdc++.h> using namespace std; int main() { int distance, sum; char choice; sum=8; cin >> distance >> choice; if(choice=='y'){ sum+=5; }for (int i= distance-1000;i>500;i-=500){ sum+=4; } sum+=4; cout << sum; return 0; }