結果

問題 No.2773 Wake up Record 1
ユーザー rururun
提出日時 2024-06-11 12:49:29
言語 Swift
(6.0.3)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 8,967 ms
コンパイル使用メモリ 120,108 KB
実行使用メモリ 9,088 KB
最終ジャッジ日時 2024-06-11 12:49:39
合計ジャッジ時間 10,312 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 1 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = 1
let sleep = "x".map{String($0)}
var ansArray:[Int] = []
for i in 1..<n{
    if sleep[i] == "o" && sleep[i-1] == "x"{
        ansArray.append(i+1)
    }
}
let ans = ansArray.map{String($0)}.joined(separator: " ")
print(ansArray.count)
print(ans)
0