結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
etoilevi
|
| 提出日時 | 2019-09-12 08:46:11 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 18,465 ms |
| コンパイル使用メモリ | 379,324 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 16:59:23 |
| 合計ジャッジ時間 | 15,996 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
fn main() {
let mut buf = String::new();
std::io::stdin().read_line(&mut buf).unwrap();
let s: Vec<u64> = buf.split_whitespace().map(|s| s.parse().unwrap()).collect();
let mut count = s[2];
if s[0] <= s[2] {
count -= 1;
}
if s[1] <= s[2] {
count -= 1;
}
println!("{}", count);
}
etoilevi