国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Codeforces Round 883 (Div. 3) 93分鐘ak實(shí)況

2023-07-08 09:44 作者:陌風(fēng)ちゃん  | 我要投稿

C. Rudolf and the Another Competition

#include <bits/stdc++.h>

using namespace std;


int main() {

int T;

scanf("%d", &T); getchar();

for (int TT = 0; TT < T; ++TT) {

int n, m, h;

scanf("%d%d%d", &n, &m, &h);

vector<pair<int, int>> score(n);

vector<vector<int>> mat(n, vector<int>(m));

for (int i = 0; i < n; i++) {

for (int j = 0; j < m; j++) {

scanf("%d", &mat[i][j]);

}

}

int cnt, s, sc;

for (int i = 0; i < n; i++) {

sort(mat[i].begin(), mat[i].end());

cnt = s = sc = 0;

for (int n : mat[i]) if (s + n <= h) {

cnt++; s += n; sc += s;

}

score[i] = { cnt, sc };

}

cnt = 1;

for (int i = 1; i < n; i++) {

cnt += score[i].first == score[0].first ? score[i].second < score[0].second : score[i].first > score[0].first;

}

printf("%d\n", cnt);

}

return 0;

}

被hack了,可以幫忙看看哪錯(cuò)了嗎?(菜雞求助

Codeforces Round 883 (Div. 3) 93分鐘ak實(shí)況的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
贵定县| 定兴县| 崇阳县| 德保县| 巴塘县| 京山县| 漯河市| 房产| 开江县| 商水县| 虞城县| 陵川县| 二连浩特市| 德化县| 富源县| 馆陶县| 内江市| 兴义市| 巴中市| 达州市| 沂水县| 望奎县| 闻喜县| 蚌埠市| 黔东| 金山区| 合山市| 阿荣旗| 孝感市| 甘南县| 缙云县| 仁寿县| 托里县| 隆昌县| 泰顺县| 广饶县| 礼泉县| 兴城市| 拉萨市| 沅陵县| 洪江市|