Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(void){
- // 自分の得意な言語で
- // Let's チャレンジ!!
- string str, str2;
- getline(cin, str);
- getline(cin, str2);
- int ans = 0;
- int length = str[0] - '0';
- int myInts[length];
- for (int i = 0; i < str2.length(); i++){
- int a = str2[i]-'0';
- if (a > 0 && a < 101){
- myInts[ans] = a;
- ans++;
- }
- }
- ans = 0;
- for(int i = 0; i < length; i++){
- if (myInts[i] > 5){
- ans++;
- }
- }
- cout << ans << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement