| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138244 | hjx433 | 字母概率 | C++ | Output Limit Exceeded | 4 MS | 272 KB | 302 | 2025-11-24 12:04:27 |
#include <bits/stdc++.h> using namespace std; int main() { int i,j,k,n,t; float s; char a[200],b; while (true) { cin>>b>>a; i=s=0; while (i<strlen(a)) { if (a[i]+32==b or a[i]-32==b or a[i]==b) s++; i++; } printf("%.5f\n",s/strlen(a)); } return 0; }