結果
問題 | No.587 七対子 |
ユーザー |
![]() |
提出日時 | 2025-01-11 02:47:32 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 21,220 ms |
コンパイル使用メモリ | 235,512 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-11 02:47:55 |
合計ジャッジ時間 | 22,474 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
package main import . "fmt" import . "strings" func main() { var s string Scan(&s) for _, ch:=range s { cnt:=Count(s, string(ch)) if cnt>2{ Println("Impossible") return } else if cnt==1 { s += string(ch) } } if len(s) != 14 { Println("Impossible") } else { Println(s[13:14]) } }