首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
吃糖果
3条解析
开通博客写题解
samkam
发表于 2026-01-18 01:14:25
import re n, k = map(int, input().split(' ')) ai = list(map(int, input().split(' '))) ai.sort() total_sweet=0 result = 0 for ele in ai: total_swee
展开全文
月眠川
发表于 2025-12-19 17:03:31
#include<iostream> #include<string> #include<algorithm> using namespace std; const int N = 2e5 + 11; int n; int k; int a[N]; int ans
展开全文
makabk6
发表于 2025-12-02 13:16:42
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { int n,k; cin >> n >&g
展开全文
查看本题
查看本题讨论
等你来战
查看全部
牛客周赛 Round 133
报名截止时间:2026-03-01 21:00
牛客挑战赛86
报名截止时间:2026-03-06 22:00
牛客周赛 Round 134
报名截止时间:2026-03-08 21:00
牛客练习赛149
报名截止时间:2026-03-13 21:30
【小羊肖恩】小羊杯 Round 3
报名截止时间:2026-03-15 18:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题