import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int t=sc.nextInt(); while(t-->0){ int n=sc.nextInt(); while(n-->0){ String s=">+"; int a=sc.nextInt(); for(int i = 1;i<=a-2;i++) s+="-"; s+="+>"; int b=sc.nextInt(); while(b-->0) System.out.println(s); System.out.println(); } } } }
0.0分
1 人评分
母牛的故事 (C语言代码)浏览:671 |
C语言训练-斐波纳契数列 (C语言代码)浏览:2826 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:600 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:1293 |
C语言程序设计教程(第三版)课后习题7.2 (C语言代码)浏览:661 |
【绝对值排序】 (C语言代码)浏览:821 |
DNA (C语言代码)浏览:741 |
C语言程序设计教程(第三版)课后习题6.1 (C语言代码)浏览:514 |
C语言训练-列出最简真分数序列* (C语言代码)浏览:609 |
C语言程序设计教程(第三版)课后习题1.6 (C语言代码)浏览:722 |