結果
問題 |
No.1003 サイコロの実装 (1)
|
ユーザー |
|
提出日時 | 2020-03-09 08:32:01 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 215 bytes |
コンパイル時間 | 11,643 ms |
コンパイル使用メモリ | 233,992 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 20:49:44 |
合計ジャッジ時間 | 12,543 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 25 |
ソースコード
package main import ( "fmt" "strings" ) func main() { var cnt int var s, t string fmt.Scan(&s, &t) cnt = strings.Count(s, t) if cnt >= 1 && len(t) <= 1 { fmt.Println(-1) } else { fmt.Println(cnt) } }