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二级辅导-进制转换 (C语言代码)浏览:854 |
点我有惊喜!你懂得!浏览:1348 |
钟神赛车 (C++代码)浏览:875 |
C语言程序设计教程(第三版)课后习题3.7 (C语言代码)浏览:459 |
众数问题 (C语言代码)浏览:849 |
C语言程序设计教程(第三版)课后习题6.5 (C++代码)浏览:467 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:904 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:570 |
剪刀石头布 (C语言代码)浏览:1456 |
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:625 |