Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
996 黄天泽 [在线测评解答教程] 求和 C++ Wrong Answer 0 MS 272 KB 198 2023-06-17 14:38:15

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,sa,sb; cin>>a>>b; for(int i=1;i<=a;i++){ sa+=i; } for(int j=1;j<=b;j++){ sb+=j; } cout<<sa<<endl<<sb-1; }


Run Info:

------Input------
887 778 916
------Answer-----
393828 303031 419986
------Your output-----
8000124 4498118