結果
| 問題 | No.938 賢人を探せ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-07 03:37:36 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 360 bytes |
| 記録 | |
| コンパイル時間 | 1,499 ms |
| コンパイル使用メモリ | 169,932 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-04-05 15:02:56 |
| 合計ジャッジ時間 | 3,343 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
コンパイルメッセージ
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:1618:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>, long>' requested here
1618 | (k_aq) = (newArrays_<type_(Array_<type_(Array_<char16_t>)>)>((k_am)));
| ^
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@input().toInt(&)
var B: [][]char :: #[N][]char
var dic: dict<[]char, int> :: #dict<[]char, int>
for i(0, N - 1)
var ss: [][]char :: cui@input().split(" ")
do B[i] :: ss[1]
do dic.add(ss[0], 0)
end for
for i(0, N - 1)
if(!dic.exist(B[i]))
do cui@print(B[i] ~ "\n")
do dic.add(B[i], 0)
end if
end for
end func