超详细通俗易懂C++,暴力求解 摘要:参考代码:#include<iostream> using namespace std; int main() { // 输入 int N; cin>>N; …… 题解列表 2022年11月23日 0 点赞 1 评论 170 浏览 评分:9.9
1115基础解法(Python) 摘要:解题思路:找规律即可注意事项:print()只换一行但是print('\n')会换二行,注意这点否则会格式错误参考代码:n = int(input())for count in ran…… 题解列表 2022年11月15日 0 点赞 0 评论 198 浏览 评分:9.9
最朴素的方法就是printf 摘要:解题思路:说实话成功的时候我笑了注意事项:只需要注意空格参考代码:#include<stdio.h> main() { int n; int a,b; scanf("%d",&n); …… 题解列表 2022年11月14日 0 点赞 0 评论 111 浏览 评分:9.9
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i,j,k,h,r,f,t; scanf ("%d",&a); for (…… 题解列表 2022年11月02日 0 点赞 0 评论 166 浏览 评分:0.0
DNA(非数组写法) 摘要: #include #include #include #include using namespace std; int main() …… 题解列表 2022年10月12日 0 点赞 0 评论 173 浏览 评分:0.0
1115DNA题解 二维数组 摘要:```c #include int main() { int n, a, b, i, j, k, r, t = 1, num = 1, s; char c[39][39];//使用二维…… 题解列表 2022年10月06日 0 点赞 0 评论 397 浏览 评分:9.9
单独打印第一行后,循环打印后面的行数(c语言) 摘要:解题思路:假设用left-x表示左边需要打印x的位置,right-x表示右边需要打印x的位置则每行打印“x”的规律:随着打印行数的增加,left-x向右移动(即left--),right-x向左移动(…… 题解列表 2022年09月18日 0 点赞 0 评论 192 浏览 评分:9.9
1115: DNA(c++代码) 摘要:```cpp #include using namespace std; void PaintDNA(int a,int b) { for(int i=1;i…… 题解列表 2022年09月11日 0 点赞 0 评论 173 浏览 评分:9.9
思路简单,可以参考参考。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i,j,k,n,x,y,a[39][39]; …… 题解列表 2022年08月20日 0 点赞 0 评论 154 浏览 评分:0.0
DNA打印,炒鸡简单! 摘要:解题思路: 每行可以看作一个固定长度的字符串,打印前变换该字符串特定字符,打印完后复原,重复打印( a * b - b + 1)行注意事项:操作字符串时,if语句控制向中间靠拢或者向两边分散参考代码:…… 题解列表 2022年08月11日 0 点赞 0 评论 233 浏览 评分:0.0