Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
65274 | jdf_zhanpengbo | 字符数组 | C++ | Accepted | 0 MS | 248 KB | 288 | 2025-05-15 16:32:07 |
#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; }