結果
| 問題 |
No.2773 Wake up Record 1
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2024-10-13 10:29:22 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 262 bytes |
| コンパイル時間 | 10,706 ms |
| コンパイル使用メモリ | 234,724 KB |
| 実行使用メモリ | 10,376 KB |
| 最終ジャッジ日時 | 2024-10-13 10:29:48 |
| 合計ジャッジ時間 | 16,480 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 1 WA * 21 |
ソースコード
package main
import "fmt"
func main() {
var n int
var s string
fmt.Scan(&n,&s)
x := 0
y := ""
for i:=1; i<n; i++ {
if s[i-1]=='o'&&s[i]=='x' {
k:=i+1
if x>0 {
y += " "
}
x++
y += fmt.Sprint(k)
}
}
fmt.Println(x)
fmt.Println(y)
}
ID 21712