您当前的位置: 首页 > 

HeartFireY

暂无认证

  • 2浏览

    0关注

    334博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

The 2021 ICPC Asia Taipei Regional Programming Contest

HeartFireY 发布时间:2022-04-11 15:22:12 ,浏览量:2

待补:C.Community Service/D.Largest Remainder

A. Ice Cream

直接 O ( 1 ) O(1) O(1)计算即可。

#include 
#define int long long
using namespace std;

inline void solve(){
    int n, x, y; cin >> x >> y >> n;
    int by = (n / (x + y)) * x * 3 + (min(n % (x + y), x) * 3);
    cout  n;
    string s1, s2; cin >> s1 >> s2;
    int ans1 = 0, ans2 = 0, ansl = 0, ansr = 0;
    for(int i = 0; i             
关注
打赏
1662600635
查看更多评论
0.0424s