编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#22825 | #1020. jwp的采购之旅 | Compile Error | 0 | 0 ms | 0 K | C++ 11 / 352 B | Albot | 2020-02-14 22:39:13 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
vector<int> arr(n);
for (int i = 0; i < n; i++) {
cin >> arr[i];
}
sort(arr.begin(), arr.end());
int count = 0;
while (m > arr[count]) {
m -= arr[count++];
}
cout << count << endl;
}
测试点 #1
编译信息
/sandbox/1/a.cpp:17:2: error: stray '\346' in program
���试点 #1
^
/sandbox/1/a.cpp:17:3: error: stray '\265' in program
���试点 #1
^
/sandbox/1/a.cpp:17:4: error: stray '\213' in program
��试点 #1
^
/sandbox/1/a.cpp:17:5: error: stray '\350' in program
测���点 #1
^
/sandbox/1/a.cpp:17:6: error: stray '\257' in program
测���点 #1
^
/sandbox/1/a.cpp:17:7: error: stray '\225' in program
测��点 #1
^
/sandbox/1/a.cpp:17:8: error: stray '\347' in program
测试��� #1
^
/sandbox/1/a.cpp:17:9: error: stray '\202' in program
测试��� #1
^
/sandbox/1/a.cpp:17:10: error: stray '\271' in program
测试�� #1
^
/sandbox/1/a.cpp:17:12: error: stray '#' in program
测试点 #1
^
/sandbox/1/a.cpp:17:13: error: expected unqualified-id before numeric constant
测试点 #1
^