mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-03 18:56:26 +00:00
712. 正数
https://www.acwing.com/problem/content/submission/code_detail/6846190/
This commit is contained in:
parent
c62ff39d90
commit
10fb2c5154
14
AcWing/712/712.cpp
Normal file
14
AcWing/712/712.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user