猴子吃桃的问题,五行代码 摘要:解题思路:注意事项:参考代码:N = int(input())my_list = [None] * (N-1) + [1]for i in reversed(range(1,N)): # revers…… 题解列表 2024年04月21日 1 点赞 0 评论 440 浏览 评分:9.9
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月21日 0 点赞 0 评论 263 浏览 评分:9.9
2839:石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>;using namespace std;int main(){ int n,na,nb; cin>>n>>na…… 题解列表 2024年04月22日 0 点赞 0 评论 337 浏览 评分:9.9
dfs经典马走日 摘要: ```cpp #include using namespace std; #define int long long #define endl "\n" const int N…… 题解列表 2024年04月23日 0 点赞 0 评论 346 浏览 评分:9.9
分布式队列AC做法——主要看偏移量,与元素值无关 摘要:参考代码:import java.io.*; import java.util.*; public class Main { static BufferedReader in = n…… 题解列表 2024年04月23日 2 点赞 0 评论 906 浏览 评分:9.9
第一个带类的程序 摘要:解题思路:注意事项:参考代码: import java.util.Scanner;class Data{ private int year,month,day; public void …… 题解列表 2024年04月23日 0 点赞 0 评论 439 浏览 评分:9.9
编写题解 1622: 蓝桥杯算法训练VIP-字符删除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char arr[21] = { 0 },ch=0; int d = 0; gets(arr); ch=getc…… 题解列表 2024年04月23日 0 点赞 0 评论 513 浏览 评分:9.9
好好学string及相关方法~ 摘要:***阅读须知:s.substr(x)的意思是从字符串s的第x个开始截取到s的末尾,那substr(0,x)不必多说了吧...为方便大家更容易理解,我将解决字符串之间的拼接的部分单独放入一个check…… 题解列表 2024年04月24日 0 点赞 0 评论 397 浏览 评分:9.9
互质?公因数! 摘要:```cpp #include using namespace std; #define endl '\n' const int N=20; vector g[N]; //g[…… 题解列表 2024年04月25日 0 点赞 0 评论 347 浏览 评分:9.9