結果
| 問題 | No.2778 Is there Same letter? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-03 21:10:53 |
| 言語 | Rust (1.94.0 + proconio + num + itertools) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 830µs | |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 662 ms |
| コンパイル使用メモリ | 188,788 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-20 00:43:49 |
| 合計ジャッジ時間 | 2,324 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
use proconio::{input, marker::Chars};
use std::collections::HashSet;
fn main() {
input! {
_: usize,
a: Chars,
}
let s: HashSet<_> = a.iter().collect();
println!("{}", if a.len() == s.len() {"No"} else {"Yes"});
}