結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-16 01:57:08 |
| 言語 | Rust (1.83.0 + proconio) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 29,185 ms |
| コンパイル使用メモリ | 393,572 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-01-16 01:57:45 |
| 合計ジャッジ時間 | 32,839 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 12 |
コンパイルメッセージ
warning: variable `S` should have a snake case name
--> src/main.rs:9:9
|
9 | S: usize,
| ^ help: convert the identifier to snake case (notice the capitalization): `s`
|
= note: `#[warn(non_snake_case)]` on by default
warning: variable `F` should have a snake case name
--> src/main.rs:10:9
|
10 | F: usize,
| ^ help: convert the identifier to snake case (notice the capitalization): `f`
warning: variable `S` should have a snake case name
--> src/main.rs:18:10
|
18 | fn solve(S: usize, F: usize) -> usize {
| ^ help: convert the identifier to snake case (notice the capitalization): `s`
warning: variable `F` should have a snake case name
--> src/main.rs:18:20
|
18 | fn solve(S: usize, F: usize) -> usize {
| ^ help: convert the identifier to snake case (notice the capitalization): `f`
ソースコード
#![allow(unused_imports)]
use proconio::input;
use proconio::marker::*;
use std::cmp::*;
use std::collections::*;
fn main() {
input! {
S: usize,
F: usize,
}
let ans = solve(S, F);
println!("{}", ans);
}
fn solve(S: usize, F: usize) -> usize {
S / F
}