結果
| 問題 | No.3613 Legendary Bread Maker |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2026-09-22 05:13:17 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 5 ms / 2,000 ms |
| + 684µs | |
| コード長 | 707 bytes |
| 記録 | |
| コンパイル時間 | 3,054 ms |
| コンパイル使用メモリ | 191,716 KB |
| 実行使用メモリ | 9,844 KB |
| 最終ジャッジ日時 | 2026-09-22 05:13:23 |
| 合計ジャッジ時間 | 5,599 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 3 |
| 小課題1 | 10 % | AC * 5 |
| 小課題2 | 40 % | AC * 13 |
| 小課題3 | 50 % | AC * 23 |
| 合計 | 2 * 100% = 200 点 |
ソースコード
#![allow(non_snake_case, unused_imports)]
use std::collections::{BinaryHeap, HashMap, HashSet};
use ac_library::{Additive, Segtree};
use proconio::{input, marker::Usize1, marker::Chars};
use itertools::Itertools;
#[allow(unused_macros)]
macro_rules! d {
( $( $x:expr ),* $(,)? ) => {
eprintln!(
concat!( $( stringify!($x), "={:?} " ),* ),
$( $x ),*
);
};
}
#[allow(dead_code)]
fn yn(b: bool) -> &'static str {
if b { "Yes" } else { "No" }
}
fn main() {
input! {
N: usize,
A: [i64; N],
}
let ans = A.iter()
.fold((0, 0), |(tot, x), a| {
(tot+x*a, x+a)
})
.0;
println!("{}", ans);
}
norioc