提交时间:2024-10-27 16:32:45
运行 ID: 54399
#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; }