結果
| 問題 |
No.9001 標準入出力の練習問題(テスト用)
|
| ユーザー |
|
| 提出日時 | 2020-07-26 12:32:03 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 405 bytes |
| コンパイル時間 | 13,480 ms |
| コンパイル使用メモリ | 380,128 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 12:22:46 |
| 合計ジャッジ時間 | 12,687 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 |
ソースコード
use std::io::stdin;
fn read_line() -> String {
let mut line = String::new();
stdin().read_line(&mut line).ok();
line
}
fn main() {
let line = read_line();
let first_vec: Vec<&str> = line.split_whitespace().collect();
let a: usize = first_vec[0].parse().unwrap();
let b: usize = first_vec[1].parse().unwrap();
let s = read_line();
println!("{} {}", a + b, s.trim());
}