Beginner Free Contest 12 - PRODUCT
View as PDF
Submit solution
Points:
0.11 (partial)
Time limit:
1.0s
Memory limit:
256M
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
Comments
Copy
include <bits/stdc++.h>
using namespace std; int check(int n){ if(n<0) return -1; return n!=0; } int main(){ iosbase::syncwith_stdio(0); cin.tie(0); cout.tie(0); int a,b; cin >> a >> b; cout << check(a*b); }