結果
| 問題 | No.2773 Wake up Record 1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-11 23:57:09 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
AC
|
| 実行時間 | 135 ms / 2,000 ms |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 2,694 ms |
| コンパイル使用メモリ | 166,528 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-02-11 23:57:15 |
| 合計ジャッジ時間 | 5,780 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
out.cpp:676:14: warning: first argument in call to 'memset' is a pointer to non-trivially copyable type 'std::shared_ptr<Array_<char16_t>>' [-Wnontrivial-memcall]
676 | memset(r->B, 0, sizeof(T) * static_cast<std::size_t>(h + bufLen_<T>()));
| ^
out.cpp:688:9: note: in instantiation of function template specialization 'newArraysRec_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>>::operator()<long>' requested here
688 | return newArraysRec_<T>()(std::forward<A>(a)...);
| ^
out.cpp:1835:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>, long>' requested here
1835 | (k_fd) = (newArrays_<type_(Array_<type_(Array_<char16_t>)>)>(((k_fb)->Len())));
| ^
out.cpp:676:14: note: explicitly cast the pointer to silence this warning
676 | memset(r->B, 0, sizeof(T) * static_cast<std::size_t>(h + bufLen_<T>()));
| ^
| (void*)
1 warning generated.
ソースコード
func main()
var n: int :: cui@inputInt()
var s: []char :: cui@inputStr()
var ans: []int :: #[0]int
for i(1, n - 1)
if(s[i] = 'o' & s[i - 1] = 'x')
do ans :~ [i + 1]
end if
end for
do cui@print("\{^ans}\n")
do cui@print("\{ans.join(" ")}\n")
end func