2022年11月10日
摘要: A - Rightmost 题意: 给定一个字符串,确定字母a,最后出现的位置,若字符串中没有出现字母a,则输出-1 思路: 遍历统计 代码: #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; 阅读全文
posted @ 2022-11-10 20:21 知白-剑仙 阅读(70) 评论(0) 推荐(0)