結果
| 問題 | No.786 京都大学の過去問 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-05 15:41:16 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 927µs | |
| コード長 | 250 bytes |
| 記録 | |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 179,880 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-24 21:09:31 |
| 合計ジャッジ時間 | 2,087 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 |
コンパイルメッセージ
warning: unused imports: `HashMap` and `HashSet`
--> src/main.rs:1:24
|
1 | use std::collections::{HashMap, HashSet};
| ^^^^^^^ ^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `n`
--> src/main.rs:8:9
|
8 | for n in 0..n {
| ^ help: if this is intentional, prefix it with an underscore: `_n`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
ソースコード
use std::collections::{HashMap, HashSet};
fn main() {
proconio::input! {
n: u64,
}
let mut dp = (0u64, 1u64);
for n in 0..n {
dp = (dp.1, dp.0 + dp.1);
eprintln!("{:?}", dp);
}
println!("{}", dp.1);
}