码家

Web Platform, Cloud and Mobile Application Development

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  234 随笔 :: 426 文章 :: 44 评论 :: 145万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

文章分类 -  【Sphere Online Judge】

摘要:http://pastebin.com/1CCUfPp3// Victor Padilla (vector9x@gmail.com) - SPOJ ONP import java.io.*;import java.util.*;public class TransformExp { static void dbg(Object...os) { System.err.println(Arrays.deepToString(os)); } static BufferedReader input; static StringTokenizer _stk; static String readln() 阅读全文
posted @ 2011-05-22 12:34 海山 阅读(205) 评论(0) 推荐(0) 编辑

摘要:SPOJ Problem Set (classical)4. Transform the ExpressionProblem code: ONPTransform the algebraic expression with brackets into RPN form (Reverse Polish Notation). Two-argument operators: +, -, *, /, ^ (priority from the lowest to the highest), brackets ( ). Operands: only letters: a,b,...,z. Assume t 阅读全文
posted @ 2011-05-17 22:24 海山 阅读(228) 评论(0) 推荐(0) 编辑

摘要:using System;public class Test{ public static void Main() { int n; while ((n = int.Parse(Console.ReadLine()))!=42) Console.WriteLine(n); }}1.不能去掉using System;会报错2.这里不需要namespace,就连public都可以去掉3.最简单格式的命令行程序就是class 类名{ public static void Main() { }} 阅读全文
posted @ 2011-04-03 17:03 海山 阅读(88) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示