Skip to content

Instantly share code, notes, and snippets.

View afutseng's full-sized avatar

Yi-Peng Tseng afutseng

  • Firstweb Limited
  • Taipei, Taiwan
View GitHub Profile
@afutseng
afutseng / coscup2012-day1-irc-log
Created August 18, 2012 13:12
COSCUP 2012 Day1 irc log
--- Log opened Fri Aug 17 01:22:02 2012
01:22 -!- chph_ [[email protected]] has joined #coscup
01:22 -!- Irssi: #coscup: Total of 44 nicks [0 ops, 0 halfops, 0 voices, 44 normal]
01:22 -!- Irssi: Join to #coscup was synced in 2 secs
01:22 -!- You're now known as chph
01:24 -!- test [3b7fcc66@gateway/web/freenode/ip.59.127.204.102] has quit [Quit: Page closed]
01:27 -!- Yuhsien [[email protected]] has quit [Quit: Lost terminal]
01:29 -!- FourDollars [[email protected]] has quit [Quit: leaving]
01:29 -!- webbertsai_ [722fde03@gateway/web/freenode/ip.114.47.222.3] has joined #coscup
01:31 -!- webbertsai [722fde03@gateway/web/freenode/ip.114.47.222.3] has quit [Ping timeout: 245 seconds]
@afutseng
afutseng / DynamicInputTest.java
Created December 18, 2011 09:42
Java dynamic array input test
import java.util.*;
public class DynamicInputTest {
public static void main(String[] argv) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] numbers = new int[n]; // numbers is n size' s array
// Input & summation
int sum = 0;
Linux carglecloud0 2.6.32-21-server #32-Ubuntu SMP Fri Apr 16 09:17:34 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information as of Sun Apr 3 15:39:25 CST 2011
System load: 0.0 Swap usage: 0% Users logged in: 0
Usage of /: 0.3% of 905.57GB Temperature: 30 C