团体程序设计天梯赛-练习集 L1-002 打印沙漏 (20 分)
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner in=new Scanner(System.in);
int a[]= {1,7,17,31,49,71,97,127,161,199,241,287,337,391,449,511,
577,647,721,799,881,967,1057,1151};
while(in.hasNext())
{
int n=in.nextInt();
String x=in.next();
int w=0;
for(int i=0;i
共有 0 条评论