제출 #1249060

#제출 시각아이디문제언어결과실행 시간메모리
1249060bethance별들과 삼각형 (IZhO11_triangle)C++20
0 / 100
1 ms324 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n;int r=0,l=0; while(n--){ int a,b; cin>>a>>b; if(a==1){ r++; } if(b==1){ l++; } } cout<<r*l; }
#Verdict Execution timeMemoryGrader output
Fetching results...