Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
51593 | AK2022071329 | 最优子图 | C++ | 解答错误 | 10 | 0 MS | 240 KB | 257 | 2022-07-13 11:55:04 |
#include<iostream> using namespace std; int main() { int n,k; cin>>n>>k; if(k==1) { int temp=0; for(int i=1; i<n; i++) { temp+=i; } cout<<temp-n+1; } else { cout<<999461765; } return 0; }