给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年04月02日 0 点赞 0 评论 692 浏览 评分:9.9
1157:亲和数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int f(int t){ int sum=1,k; for(…… 题解列表 2023年04月02日 0 点赞 0 评论 348 浏览 评分:0.0
输出亲朋字符串——python 摘要:解题思路:注意事项:参考代码:L = input()for i in range(len(L)-1): a =chr( ord(L[i])+ord(L[i+1])) print(a,end…… 题解列表 2023年04月02日 0 点赞 0 评论 426 浏览 评分:0.0
单词的长度——python 摘要:解题思路:注意事项:参考代码:L = list(map(str,input().split()))L1 = []for i in L: L1.append(len(i))print(',…… 题解列表 2023年04月02日 0 点赞 0 评论 355 浏览 评分:0.0
全排列 (python) 摘要:解题思路:直接用库函数注意事项:参考代码:from itertools import *n = input()for i in permutations(n): # 默认返回长度为len(n)的全排…… 题解列表 2023年04月02日 0 点赞 0 评论 590 浏览 评分:0.0
给用Java的开一下荒土 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2023年04月02日 0 点赞 0 评论 278 浏览 评分:0.0
题解 1575: 递归倒置字符数组----自用 摘要:解题思路:非递归方法注意事项:参考代码:#include<stdio.h> int main() { int n; char temp; char a[100]; …… 题解列表 2023年04月02日 0 点赞 0 评论 755 浏览 评分:8.4
蓝桥杯算法训练-2的次幂表示(递归python) 摘要:解题思路:注意事项:参考代码:def bi(n): s = bin(n)[2:][::-1] # 先转换成二进制( bin(n) )再去掉0b( 【2:】)最后反转字符串 ,次方与索引一致(【…… 题解列表 2023年04月02日 0 点赞 0 评论 374 浏览 评分:0.0
纸张尺寸——python 摘要:解题思路:注意事项:参考代码:n = input()a,b = 1189,841for i in range(int(n[1])): a,b = b,a//2 print(a)print(b)…… 题解列表 2023年04月02日 1 点赞 0 评论 367 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要://此为我个人的思路,请多多指教#include<bits/stdc++.h>using namespace std;int main(){ long double m=0,n=0,a=0; cin>…… 题解列表 2023年04月02日 0 点赞 0 评论 358 浏览 评分:0.0