4 条题解

  • 1
    @ 2023-8-28 10:14:05
    print(len(input().split(" ")))
    
    • 0
      @ 2023-7-17 9:03:52
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      string s;
      int b=0;
      while(cin>>s){
      b+=1;
      }
      cout<<b;
      return 0;
      }
      
      
      • -1
        @ 2023-8-20 17:00:26

        #include <bits/stdc++.h> using namespace std; int main() { string sentence; int answer; while (cin >> sentence) answer++; cout << answer; }//极致压行

        • -1
          @ 2023-7-12 8:51:17

          #include<bits/stdc++.h> using namespace std; int main() { //strlen char //length string int s=1; char a[100]; cin.getline(a,100); for (int i=0;i<=100;i++) { if(a[i]==' ')s+=1; }cout<<s; }

          • 1

          信息

          ID
          54
          时间
          1000ms
          内存
          128MiB
          难度
          3
          标签
          递交数
          676
          已通过
          360
          上传者