Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
33263 | U•ェ•*✔ | 【USACO】奶牛式乘法 | C++ | 运行超时 | 1000 MS | 232 KB | 171 | 2023-12-24 14:45:07 |
#include"bits/stdc++.h" using namespace std; int main(){ int n,ans=0; cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=i;j++){ ans+=j; } } cout<<ans; }