結果
問題 | No.495 (^^*) Easy |
ユーザー | k.h |
提出日時 | 2019-08-05 18:19:40 |
言語 | Go (1.22.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 11,488 ms |
コンパイル使用メモリ | 205,184 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-25 17:24:09 |
合計ジャッジ時間 | 12,190 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 2 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | WA | - |
ソースコード
package main import ( "bufio" "fmt" "os" "strings" ) func main() { sc := bufio.NewScanner(os.Stdin) sc.Scan() s := sc.Text() l := strings.Count(s, "(^^*)") r := strings.Count(s, "(*^^)") if l == -1 { l = 0 } if r == -1 { r = 0 } fmt.Println(l, r) }