Submission #64030880
Source Code Expand
Copy
#![allow(unused_imports)]#![allow(unused_variables)]#![allow(non_snake_case)]use ac_library::*;use once_cell::sync::Lazy;use static_assertions::*;use varisat::*;use memoise::*;use argio::*;use bitvec::prelude::*;use counter::Counter;use hashbag::*;use pathfinding::prelude::*;use recur_fn::*;use ::indexing::*;use amplify::*;use amplify_derive::*;use amplify_num::*;use easy_ext::*;use multimap::*;use btreemultimap::*;
#![allow(unused_imports)] #![allow(unused_variables)] #![allow(non_snake_case)] use ac_library::*; use once_cell::sync::Lazy; use static_assertions::*; use varisat::*; use memoise::*; use argio::*; use bitvec::prelude::*; use counter::Counter; use hashbag::*; use pathfinding::prelude::*; use recur_fn::*; use ::indexing::*; use amplify::*; use amplify_derive::*; use amplify_num::*; use easy_ext::*; use multimap::*; use btreemultimap::*; use bstr::*; use az::*; use glidesort::*; use ::tap::*; use omniswap::*; use multiversion::*; use ::num::*; use num_bigint::*; use num_complex::*; use num_integer::*; use num_iter::*; use num_rational::*; use num_traits::*; use num_derive::*; use ndarray::*; use nalgebra::*; use alga::*; use libm::*; use rand::*; use getrandom::*; use rand_chacha::*; use rand_core::*; use rand_hc::*; use rand_pcg::*; use rand_distr::*; use petgraph::*; use indexmap::*; use regex::*; use lazy_static::*; use ordered_float::*; use ascii::*; use permutohedron::*; use superslice::*; use itertools::*; use itertools_num::*; use maplit::*; use either::*; use im_rc::*; use fixedbitset::*; use bitset_fixed::*; use proconio::input; use proconio::marker::{Bytes, Chars, Usize1}; use text_io::*; use rustc_hash::*; use smallvec::*; use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; fn main() { input! { N: usize, } let ans = solve(N); println!("{}", ans); } fn solve(N: usize) -> String { if N % 2 == 1 { let mut res = vec!['-'; N]; res[N / 2] = '='; return res.iter().collect(); } else { let mut result = vec!['-'; N]; result[N / 2 - 1] = '='; result[N / 2] = '='; return result.iter().collect(); } }
Submission Info
Submission Time | |
---|---|
Task | A - Doors in the Center |
User | maysay_d |
Language | Rust (rustc 1.70.0) |
Score | 100 |
Code Size | 1733 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 2072 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt |
All | random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
random_03.txt | AC | 1 ms | 2072 KB |
random_04.txt | AC | 1 ms | 2008 KB |
random_05.txt | AC | 1 ms | 1968 KB |
random_06.txt | AC | 1 ms | 1964 KB |
random_07.txt | AC | 1 ms | 1948 KB |
random_08.txt | AC | 1 ms | 1904 KB |
random_09.txt | AC | 1 ms | 1836 KB |
random_10.txt | AC | 1 ms | 2068 KB |
sample_01.txt | AC | 1 ms | 2064 KB |
sample_02.txt | AC | 1 ms | 1916 KB |