結果
| 問題 | No.3645 Count Shitoshitoto Sequence |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2026-09-23 17:02:45 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 909µs | |
| コード長 | 646 bytes |
| 記録 | |
| コンパイル時間 | 4,040 ms |
| コンパイル使用メモリ | 184,444 KB |
| 実行使用メモリ | 9,844 KB |
| 最終ジャッジ日時 | 2026-09-23 17:02:56 |
| 合計ジャッジ時間 | 6,068 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 3 |
| 小課題1 | 10 % | AC * 3 |
| 小課題2 | 30 % | AC * 8 |
| 小課題3 | 60 % | AC * 21 |
| 合計 | 100 点 |
ソースコード
#![allow(non_snake_case, unused_imports)]
use itertools::Itertools;
use proconio::{input, marker::Chars, marker::Usize1};
use std::cmp::{Reverse, max, min};
use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque};
#[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" }
}
const MOD: usize = 998244353;
fn main() {
input! {
N: usize,
}
let ans = (N * N - N) % MOD;
println!("{}", ans);
}
norioc