結果
| 問題 | No.2647 [Cherry 6th Tune A] Wind |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-09 22:55:35 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 2,000 ms |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 10,305 ms |
| コンパイル使用メモリ | 166,016 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-02-11 18:26:30 |
| 合計ジャッジ時間 | 7,858 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 |
コンパイルメッセージ
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:1811:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>, long>' requested here
1811 | (k_el) = (newArrays_<type_(Array_<type_(Array_<char16_t>)>)>(((k_ej)->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 t: int :: cui@inputInt()
for(1, t)
var d: int :: cui@inputInt()
var a: int :: cui@inputInt()
var ans: []int :: #[d]int
for i(0, d - 1)
var x: int :: cui@inputInt()
do ans[i] :: (x + a / 2) / a
end for
do cui@print("\{ans.join(" ")}\n")
end for
end func