Code
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int tot = a*b+(a+b)+min(a,b);
cout<<tot;
}
Information
- Submit By
- Type
- Pretest
- Problem
- P1121 Square Counting Challenge
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-11-05 15:02:24
- Judged At
- 2024-11-05 15:02:24
- Judged By
- Score
- 10
- Total Time
- 1ms
- Peak Memory
- 540.0 KiB