题解列表

筛选

大数计算用Python爽到爆

摘要:import sys sys.set_int_max_str_digits(50000000)# 增加到50000000位 n=int(input()) s=1 for i in range(……

一行代码解决

摘要:print(len([i for i in list(map(int, input().split())) if i & (i - 1) == 0]) if input() else 0)……

浮点数据类型大小

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    short b;    printf("%d %d",sizeof(a),sizeof……

1584: 蓝桥杯算法训练VIP-判定字符位置

摘要:**题目描述:**返回给定字符串s中元音字母的首次出现位置。英语元音字母只有‘a’、‘e’、‘i’、‘o’、‘u’五个。若字符串中没有元音字母,则返回0。**只考虑小写的情况。** 直接上代码,一看……

2846: 统计数字字符个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ string s……