結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
cra77756176
|
| 提出日時 | 2022-12-05 01:56:05 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 447 bytes |
| コンパイル時間 | 13,810 ms |
| コンパイル使用メモリ | 383,408 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 01:38:45 |
| 合計ジャッジ時間 | 13,877 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
fn main() {
let mut xx = String::new();
std::io::Read::read_to_string(&mut std::io::stdin(), &mut xx).ok();
let mut xx = xx.split(['.', '\n']).map(|n| n.parse::<u64>().unwrap());
let fossil = (xx.next().unwrap(), xx.next().unwrap(), xx.next().unwrap());
let judged = (xx.next().unwrap(), xx.next().unwrap(), xx.next().unwrap());
if judged <= fossil {
println!("YES");
} else {
println!("NO");
}
}
cra77756176