結果
問題 | No.388 階段 (1) |
ユーザー |
|
提出日時 | 2025-01-16 02:02:16 |
言語 | Rust (1.83.0 + proconio) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 15,895 ms |
コンパイル使用メモリ | 402,352 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-16 02:02:33 |
合計ジャッジ時間 | 13,486 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
warning: variable `S` should have a snake case name --> src/main.rs:10:9 | 10 | S: usize, | ^ help: convert the identifier to snake case (notice the capitalization): `s` | note: the lint level is defined here --> src/main.rs:2:9 | 2 | #![warn(non_snake_case)] | ^^^^^^^^^^^^^^ warning: variable `F` should have a snake case name --> src/main.rs:11:9 | 11 | 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:19:10 | 19 | 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:19:20 | 19 | fn solve(S: usize, F: usize) -> usize { | ^ help: convert the identifier to snake case (notice the capitalization): `f`
ソースコード
#![allow(unused_imports)] #![warn(non_snake_case)] 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 + 1 }