码迷,mamicode.com
首页 > 其他好文 > 详细

URAL 1082 Gaby Ivanushka

时间:2014-08-26 07:28:05      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   java   for   ar   div   log   sp   

按顺序来就行,从小到大一串数

 1 import java.util.Scanner;
 2 
 3 public class P1082
 4 {
 5     public static void main(String args[])
 6     {
 7         try (Scanner cin = new Scanner(System.in))
 8         {
 9             while (cin.hasNext())
10             {
11                 int n = cin.nextInt();
12                 for (int i = 0; i < n; i++)
13                     System.out.print(i + " ");
14                 System.out.println();
15             }
16         }
17     }
18 }

 

URAL 1082 Gaby Ivanushka

标签:style   blog   color   java   for   ar   div   log   sp   

原文地址:http://www.cnblogs.com/gwhahaha/p/3936338.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!