| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75398 | sh25_ganzy | 组合 | C++ | 解答错误 | 0 MS | 252 KB | 425 | 2025-12-06 13:20:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; int cnt=0; bool able[m*n]={0}; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ if((i!=0||j!=0)&&i*j<m*n){ able[i*j-1]=true; } } } for(int i=0;i<m*n;i++){ if(able[i]==false){ cnt++; } } cout<<cnt; return 0; }