일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Rust
- 러스트 예제
- 러스트
- 자바 개념
- 알고리즘
- java
- Database
- 데이터베이스
- ubuntu
- OS
- 파이썬 챌린지
- 러스트 프로그래밍 공식 가이드
- C
- 파이썬
- 운영체제
- Python
- 파이썬 첼린지
- 데이터 통신
- 자바 기초
- data communication
- 오라클
- 우분투
- 오라클DB
- 백준 러스트
- 자바
- 파이썬 알고리즘
- Python challenge
- Operating System
- 백준
- Reversing
- Today
- Total
목록백준 러스트 (7)
IT’s Portfolio
💻 Baekjoon Two Dimensional Array Stage Matrix Sum Question_Link - 2738 Basic Code use std::io::{self, *}; fn make_matrix(n: u32, m: &str) -> (Vec, Vec) { let mut v: Vec = Vec::new(); let mut iter = m.lines().skip(1); for _ in 0..iter.clone().count() as u32/n { let mut t: Vec = Vec::new(); (0..n).for_each(|_| { t.push(iter.next().unwrap().split_whitespace() .map(|y| y.parse::().unwrap()).collect:..
💻 Baekjoon Deepening 1 Stage Sprout Question_Link - 25083 Basic Code fn main(){ print!(r#" ,r'"7 r-,',..Lr'~\/ | |"#); } King, Queen, Rook, Bishop, Knight, Pawn Question_Link - 3003 Basic Code use std::io; fn main() { const P: [i32; 6] = [1, 1, 2, 2, 2, 8]; let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); for (i, v) in buf.split_whitespace().map(|x|..
💻 Baekjoon String Stage Character & String Question_Link - 27866 Basic Code use std::io::{self, Read}; fn main() { let mut buf = String::new(); io::stdin().read_to_string(&mut buf).unwrap(); let mut iter = buf.lines(); let s = String::from(iter.next().unwrap()); let i = iter.next().unwrap().parse::().unwrap(); println!("{}", &s[i-1..i]); } Measure Word Length Question_Link - 2743 Basic Code use ..
💻 Baekjoon One Dimensional Array Stage Count Number Question_Link - 10807 Basic Code use std::io; fn input() -> String { let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); buf.pop(); buf } fn main() { let mut n: Vec = Vec::new(); let mut v = 0; (0..3).for_each( |x| { let s = input(); if x==1 { n = s.split(" ").map( |y| y.parse().unwrap() ).collect(); } else if x==2 { v = s.pa..
💻 Baekjoon Loop Stage Multiplication Table Question_Link - 2739 Basic Code use std::io; fn input() -> String { let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); buf.pop(); buf } fn main() { let n: i32 = input().parse().unwrap(); for i in 1..10 { println!("{n} * {i} = {}", n*i); } } A+B - 3 Question_Link - 10950 Basic Code use std::io; fn result() -> i32 { let mut buf = Strin..
💻 Baekjoon Condition Stage Two Number Compare Question_Link - 1330 Basic Code use std::io; fn main() { let mut buf = String::new(); io::stdin().read_line(&mut buf).unwrap(); let nums: Vec = buf.trim().split(' ') .map( |x| x.parse().unwrap() ).collect(); if nums[0]>nums[1] { println!(">"); } else if nums[0] 3, _ => 4, }; println!("{q}"); } Alarm Question_Link - 2884 Basic Code use std::io; fn mai..
💻 Baekjoon I/O & Calculation Stage Hello World Question_Link - 2557 fn main() { println!("Hello World!"); } A+B Question_Link - 1000 Basic Code use std::io; fn main() { let mut numbers = String::new(); let split_nums: Vec = match io::stdin().read_line(&mut numbers) { Ok(_n) => numbers.split(' ').collect(), Err(_) => vec!["Error"], }; let a: u32 = match split_nums[0].trim().parse() { Ok(x) => x, ..