結果
| 問題 | No.1764 Square |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-03-03 06:19:57 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 456 bytes |
| 記録 | |
| コンパイル時間 | 1,587 ms |
| コンパイル使用メモリ | 168,808 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-06 11:39:43 |
| 合計ジャッジ時間 | 2,083 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
コンパイルメッセージ
out.cpp:676:14: warning: first argument in call to 'memset' is a pointer to non-trivially copyable type 'std::shared_ptr<Queue_<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<Queue_<char16_t>>>>>::operator()<long long>' requested here
688 | return newArraysRec_<T>()(std::forward<A>(a)...);
| ^
out.cpp:1617:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Queue_<char16_t>>>>, long long>' requested here
1617 | (k_am) = (newArrays_<type_(Array_<type_(Queue_<char16_t>)>)>((4LL)));
| ^
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 qs: []queue<char> :: #[4]queue<char>
for i(0, 3)
do qs[i] :: #queue<char>
end for
do qs[0].add('A')
do qs[0].add('E')
do qs[1].add('B')
do qs[2].add('C')
do qs[3].add('D')
var k: int :: cui@inputInt()
for i(0, k - 1)
var c: char :: qs[i % 4].get()
do qs[(i + 1) % 4].add(c)
end for
for i(0, 3)
while(^qs[i] <> 0)
var c: char :: qs[i].get()
do cui@print("\{c}")
end while
do cui@print("\n")
end for
end func