题解 1115: DNA

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

DNA (C语言代码)

摘要:解题思路:注意事项:大写X可AC, 小写x不能AC。参考代码://1115: DNA  #include <stdio.h> int main() { int a[16], b[16], ……

DNA (C语言代码)

摘要:解题思路:注意事项:  每一个不同的DNA结构结束后要输出进行一次换行。参考代码:#include <stdio.h>int main(){    int N,a,b;    int i,j,n,mo……

DNA (C语言代码) 代码短,简单易懂

摘要:解题思路: X和空格的输出无非是双重for循环,不难理解。本题多出一个共用行,要点在这,具体代码中标注注意事项:参考代码:#include<stdio.h>int main(){    int n,a……

DNA (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main() {  int hang,lie;  int a,b,zu,k,w,e,l,……

DNA (C语言代码)

摘要:解题思路:先把第一组输出,其余重复的,少输出一行,孩子以为x是*,结果死活不过,后来把*换成x还不对,最后发现热家的X是大写的注意事项:参考代码:#include <stdio.h>#include ……

DNA (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg……

DNA (C++代码)怎么想怎么画

摘要:解题思路:怎么想怎么画再打印注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int maxn = 1000……

DNA (C++代码)怎么想怎么画

摘要:解题思路:怎么想怎么画再打印注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int maxn = 1000……

DNA (C++代码)

摘要:解题思路:把DNA定义为二维数组,当重复度(b)大于一时,之后的数组都不输出第一行参考代码:#include<iostream> #include<string> using namespace ……

DNA (C语言代码)

摘要:解题思路:注意事项:在a行a+1列的字符数组中进行变换注意1次循环的图形是缺少一个尾巴的,但是第二次输出的头就充当了上一个的尾巴,所以加上了putS(ch[0]),在结束的时候也同样要加一个尾巴 参考……