結果
問題 | No.835 ジュース |
ユーザー |
![]() |
提出日時 | 2020-04-05 18:36:12 |
言語 | Rust (1.83.0 + proconio) |
結果 |
WA
|
実行時間 | - |
コード長 | 468 bytes |
コンパイル時間 | 13,203 ms |
コンパイル使用メモリ | 402,036 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-03 08:20:13 |
合計ジャッジ時間 | 14,101 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 3 WA * 3 |
コンパイルメッセージ
warning: function `read_vec` is never used --> src/main.rs:7:4 | 7 | fn read_vec<T: std::str::FromStr>() -> Vec<T> { | ^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
ソースコード
fn read<T: std::str::FromStr>() -> T { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().parse().ok().unwrap() } fn read_vec<T: std::str::FromStr>() -> Vec<T> { let mut s = String::new(); std::io::stdin().read_line(&mut s).ok(); s.trim().split_whitespace() .map(|e| e.parse().ok().unwrap()).collect() } fn main() { let num: i32 = read(); let ans: i32 = (15 * num) /10; println!("{}", ans); }