#include<bits/stdc++.h> using namespace std;
int main(){ ios::sync_with_stdio(false); cin.tie(0);
int cnt=0; string t; getline(cin,t); int n= stoi(t); string s; getline(cin,s); for(int i=0;i<n;i++){ if(s[i]!=' '){ cnt++; } } cout<<cnt<<'\n'; return 0;
}
微信直接扫码登录
使用经过邮箱注册的账号密码登录