0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 13:51:59 +00:00
OI-codes/AcWing/712/712.cpp

15 lines
241 B
C++
Raw Normal View History

#include <bits/stdc++.h>
using namespace std;
int main() {
double x;
int ans = 0;
for (int i = 1; i <= 6; i++) {
cin >> x;
if (x > 0) ans++;
}
cout << ans << " positive numbers" << endl;
return 0;
}