DAY 84 His Bigdata Class PYTHON JAVA ALGORITHM
Sign up to view full document!
SIGN UP
DAY 84 His Bigdata Class
PYTHON
JAVA
ALGORITHM HOMEWORK
import java. io. Buffered. Reader; java. io. IOException; java. io. Input. Stream. Reader; java. util. String. Tokenizer; public class Main { public static void main(String[] args) throws IOException { Buffered. Reader br = new Buffered. Reader(new Input. Stream. Reader(System. in)); //Scanner scan = new Scanner(System. in); //int n = scan. next. Int(); int n = Integer. parse. Int(br. read. Line()); int[][] dp = new int[n + 1]; int max = 0; for (int i = 1; i <= n; i++) { String. Tokenizer st = new String. Tokenizer(br. read. Line()); for (int j = 1; j <= i; j++) { dp[i][j] = Integer. parse. Int(st. next. Token()); //dp[i][j] = scan. next. Int(); // 배열에 입력값 저장
- Slides: 8