結果
| 問題 | No.1406 Test |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-30 15:17:21 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 403 bytes |
| 記録 | |
| コンパイル時間 | 9,563 ms |
| コンパイル使用メモリ | 181,336 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-14 13:42:57 |
| 合計ジャッジ時間 | 5,939 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
use std::io::stdin;
fn main() {
let mut s = String::new();
stdin().read_line(&mut s).ok();
let n: usize = s.trim().parse().unwrap();
stdin().read_line(&mut s).ok();
let m: usize = s
.split_whitespace()
.collect::<Vec<_>>()
.iter()
.map(|a| a.parse::<usize>().unwrap())
.sum();
println!("{}", (100 + m % n) / n + (m % n == 0) as usize);
}