Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75400 sh25_ganzy 组合 C++ 通过 0 MS 248 KB 416 2025-12-06 13:22:48

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; int cnt=0; bool able[m*n]={false}; for(int i=0;i<=m;i++){ for(int j=0;j<=n;j++){ if(i*j!=0){ able[i*j-1]=true; } } } for(int i=0;i<m*n;i++){ if(able[i]==false){ cnt++; } } cout<<cnt; return 0; }


测评信息: