请问ends和" "有区别吗
查看原帖
请问ends和" "有区别吗
605885
ICE_lyc楼主2021/11/21 17:30

输出时用ends过不了,ends和" "有区别吗?求解```cpp #include #include #include using namespace std; int main() { int n,m; long long a=0,b=0;//a正方形数 b长方形数 cin>>n>>m; for(int i=1;i<=n;i++) { for(int j=1;j<=m;j++) { a+=min(i,j); b+=i*j; } } b-=a; cout<<a<<ends<<b;//改成cout<<a<<" "<<b;能AC return 0; }

2021/11/21 17:30
加载中...