Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
105154 朵拉克斯 NOIP2018 普及:第一题 标题统计 C++ 通过 100 0 MS 268 KB 224 2023-06-10 15:13:46

Tests(20/20):


#include<bits/stdc++.h> using namespace std; char s[1000]; int len,sum=0; int main() { scanf("%[^\n]",s); len=strlen(s); for(int i=0; i<len; i++) if(s[i]!=' ') sum++; printf("%d\n",sum); return 0; }


测评信息: