0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 03:51:58 +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;
}