Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
65274 jdf_zhanpengbo 字符数组 C++ 通过 0 MS 248 KB 288 2025-05-15 16:32:07

Tests(1/1):


#include <iostream> #include <cstring> using namespace std; int main() { int num,ans = 0; string s; cin >> num >> s; for (int i = num-1;i >= 0;i--){ cout<<s[i]; if (s[i] >= 'A' && s[i] <= 'Z') ans++; } cout << endl << ans; return 0; }


测评信息: