| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86928 | sh25_zhoumy | 基因相关性 | C++ | 通过 | 0 MS | 252 KB | 427 | 2026-04-10 14:47:18 |
#include <iostream> #include <string> using namespace std; int main() { double p; string s1, s2; cin >> p >> s1 >> s2; int cnt = 0; int len = s1.size(); for (int i = 0; i < len; i++) { if (s1[i] == s2[i]) { cnt++; } } if ((double)cnt / len >= p) { cout << "yes" << endl; } else { cout << "no" << endl; } return 0; }