結果
問題 |
No.2778 Is there Same letter?
|
ユーザー |
![]() |
提出日時 | 2024-10-13 10:02:01 |
言語 | Go (1.23.4) |
結果 |
RE
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 11,164 ms |
コンパイル使用メモリ | 230,928 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 10:02:19 |
合計ジャッジ時間 | 11,860 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 12 |
ソースコード
package main import "fmt" func main() { var ( n int s string m map[rune]bool ) fmt.Scan(&n,&s) for _,c := range s { if _,ok := m[c]; ok { fmt.Println("Yes") return } m[c]=true } fmt.Println("No") }