题解列表
逐个检查字符串的解法
摘要:解题思路:使用bool函数判定字符串中的数字和运算符号,输入字符串后从第0个元素开始检查,遇到数字时完成int转化(char转int固定格式:chardigit-'0'),遇到运算符号……
题目 1213: 幸运儿题解
摘要:参考代码:#include<iostream>
using namespace std;
int n;
bool flag[100];
bool f(){
int num=0;
……
题目 1216: 成绩转换题解
摘要:参考代码:#include<iostream>
using namespace std;
int main(){
int score;
while(cin>>score){
……
2916: 谁考了第k名 (结构体+sort函数)
摘要:解题思路: 1.定义结构体 2.循环输入数据 3.sort排序 4.输出第k名注意事项:参考代码:#include <bits/stdc++.h>
using namespace std;
……
2917: 奇数单增序列
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <algorithm>
using namespace std;
int main() {
……
蓝桥杯2014年第五届真题-分糖果
摘要:解题思路:注意事项:参考代码:head = int(input())n = map(int,input().strip().split())n = list(n)num = 0jurge = len(……
2857: 加密的病历单
摘要:```python
s = input()
news = str()
for c in s:
if c.isupper(): news += c.lower()
else: ……