結果
| 問題 | No.454 逆2乗和 |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-08-07 02:21:23 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 403 ms |
| コンパイル使用メモリ | 174,120 KB |
| 実行使用メモリ | 10,044 KB |
| 最終ジャッジ日時 | 2026-09-20 02:41:21 |
| 合計ジャッジ時間 | 88,129 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 3 |
| other | TLE * 31 |
コンパイルメッセージ
warning: variable `ANS` should have a snake case name --> src/main.rs:8:13 | 8 | let mut ANS:f32=0.0; | ^^^ help: convert the identifier to snake case: `ans` | = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
ソースコード
fn main() {
let x: f32 = {
let mut line: String = String::new();
std::io::stdin().read_line(&mut line).unwrap();
line.trim().parse().unwrap()
};
let mut ANS:f32=0.0;
for i in 1..2000000000{
ANS+=1.0/((i as f32 +x)*(i as f32 +x));
}
println!("{}",ANS);
}
titia