해커랭크 RUST (1) 썸네일형 리스트형 [HackerRank] Grading Students in Rust use std::env; use std::fs::File; use std::io::{self, BufRead, Write}; /* * Complete the 'gradingStudents' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accepts INTEGER_ARRAY grades as parameter. */ fn gradingStudents(grades: &[i32]) -> Vec { let mut results = Vec::new(); for i in 0..grades.len() { let grade = grades[i]; if grade % 5 >= 3 && grade > 37 { .. 이전 1 다음