結果
| 問題 |
No.3064 Speedrun (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-15 22:50:15 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 270 bytes |
| コンパイル時間 | 17,564 ms |
| コンパイル使用メモリ | 405,420 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2025-04-15 22:52:36 |
| 合計ジャッジ時間 | 18,514 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
コンパイルメッセージ
warning: variable `A` should have a snake case name --> src/main.rs:5:9 | 5 | A: [i32; 4], | ^ 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; 4], | ^ help: convert the identifier to snake case: `b` warning: variable `T` should have a snake case name --> src/main.rs:7:9 | 7 | T: i32 | ^ help: convert the identifier to snake case: `t`
ソースコード
use proconio::input;
fn main() {
input!{
A: [i32; 4],
B: [i32; 4],
T: i32
}
let mut sum = 0;
for i in 0..4{
sum += A[i] * B[i];
}
if sum <= T {
println!("Yes");
} else {
println!("No");
}
}