Submission #51519477
Source Code Expand
use std::collections::HashSet; use proconio::input; fn main() { input! { n: usize, st: [(String, String); n], }; let set = st.into_iter().collect::<HashSet<(String, String)>>(); let ans = set.len() != n; println!("{}", if ans { "Yes" } else { "No" }); }
Submission Info
Submission Time | |
---|---|
Task | D - Same Name |
User | bouzuya |
Language | Rust (rustc 1.70.0) |
Score | 200 |
Code Size | 292 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 2288 KiB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0.txt, example1.txt, example2.txt |
All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, example0.txt, example1.txt, example2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
000.txt | AC | 1 ms | 1940 KiB |
001.txt | AC | 1 ms | 2180 KiB |
002.txt | AC | 1 ms | 2184 KiB |
003.txt | AC | 1 ms | 2008 KiB |
004.txt | AC | 1 ms | 2060 KiB |
005.txt | AC | 1 ms | 2020 KiB |
006.txt | AC | 1 ms | 2288 KiB |
007.txt | AC | 1 ms | 2140 KiB |
example0.txt | AC | 1 ms | 2012 KiB |
example1.txt | AC | 1 ms | 1740 KiB |
example2.txt | AC | 1 ms | 1928 KiB |