結果
| 問題 |
No.3064 Speedrun (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-15 22:44:01 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 294 bytes |
| コンパイル時間 | 27,638 ms |
| コンパイル使用メモリ | 386,824 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-04-15 22:46:32 |
| 合計ジャッジ時間 | 15,907 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
コンパイルメッセージ
warning: variable `A` should have a snake case name --> src/main.rs:5:9 | 5 | A: i32, | ^ help: convert the identifier to snake case: `a` | = note: `#[warn(non_snake_case)]` on by default warning: variable `B` should have a snake case name --> src/main.rs:6:9 | 6 | B: i32, | ^ help: convert the identifier to snake case: `b` warning: variable `C` should have a snake case name --> src/main.rs:7:9 | 7 | C: i32, | ^ help: convert the identifier to snake case (notice the capitalization): `c` warning: variable `D` should have a snake case name --> src/main.rs:8:9 | 8 | D: i32, | ^ help: convert the identifier to snake case: `d` warning: variable `P` should have a snake case name --> src/main.rs:9:9 | 9 | P: i32, | ^ help: convert the identifier to snake case: `p` warning: variable `Q` should have a snake case name --> src/main.rs:10:9 | 10 | Q: i32, | ^ help: convert the identifier to snake case: `q` warning: variable `R` should have a snake case name --> src/main.rs:11:9 | 11 | R: i32, | ^ help: convert the identifier to snake case: `r` warning: variable `S` should have a snake case name --> src/main.rs:12:9 | 12 | S: i32, | ^ help: convert the identifier to snake case (notice the capitalization): `s` warning: variable `T` should have a snake case name --> src/main.rs:13:9 | 13 | T: i32 | ^ help: convert the identifier to snake case: `t`
ソースコード
use proconio::input;
fn main() {
input!{
A: i32,
B: i32,
C: i32,
D: i32,
P: i32,
Q: i32,
R: i32,
S: i32,
T: i32
}
if A*P+B*Q+C*R+D*S <= T {
println!("Yes");
} else {
println!("No");
}
}