7 条题解

  • -1
    @ 2025-12-14 21:06:56

    #include<bits/stdc++.h> #define int long long #define INF 0x3f3f3f using namespace std; int x,zero; char c; signed main(){ cin>>x>>c; int ans; if(x<=1000){ if(c=='n')cout<<"8"; else cout<<"13"; return 0; } if(x%500)ans=((x-1000)/500+1)*4+8; else ans=((x-1000)/500)*4+8; if(c=='y')ans+=5; cout<<ans; return 0; }

    • @ 2026-2-28 10:50:14

      你就不能排一下版吗???

信息

ID
20
时间
1000ms
内存
128MiB
难度
2
标签
递交数
101
已通过
62
上传者