无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(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ó)家法律
南和县| 宁国市| 定陶县| 布拖县| 青海省| 茂名市| 长沙县| 安陆市| 上饶市| 铜山县| 枣强县| 嘉义市| 周宁县| 敖汉旗| 绥德县| 无棣县| 扎兰屯市| 隆安县| 东至县| 贞丰县| 荣成市| 通辽市| 元谋县| 鹰潭市| 武安市| 宁海县| 临洮县| 晋江市| 遂平县| 博客| 原阳县| 育儿| 湖北省| 桐乡市| 九江市| 黄陵县| 工布江达县| 雷州市| 阳山县| 阿瓦提县| 五河县|