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语言程序设计教程(第三版)课后习题6.6 (C++代码)浏览:633 |
1128题解(返回值为数组的情况)浏览:474 |
大神老白 (C语言代码)浏览:601 |
C语言程序设计教程(第三版)课后习题10.1 (C语言代码)浏览:771 |
母牛的故事 (C语言代码)浏览:480 |
简单的a+b (C语言代码)浏览:587 |
字符串对比 (C++代码)浏览:565 |
P1044 (C++代码)浏览:494 |
1063题 初学者,求帮忙看下,不知道哪错了浏览:232 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:424 |