Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81000 sh25_zhuwy 字符数组 C++ 通过 0 MS 248 KB 270 2026-01-04 15:37:13

Tests(1/1):


#include<bits/stdc++.h> 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; }


测评信息: