結果
問題 |
No.3109 Swap members
|
ユーザー |
👑 |
提出日時 | 2025-04-18 21:07:38 |
言語 | cLay (20241019-1) |
結果 |
CE
|
実行時間 | - |
コード長 | 146 bytes |
コンパイル時間 | 5,049 ms |
コンパイル使用メモリ | 180,732 KB |
最終ジャッジ日時 | 2025-04-18 21:07:45 |
合計ジャッジ時間 | 6,058 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:869:36: error: no match for ‘operator*’ (operand type is ‘std::vector<std::__cxx11::basic_string<char> >’) 869 | vector<string> s((N+(K-1-k))/K,*s); | ^~ In file included from /usr/include/c++/13/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127, from main.cpp:4: /usr/include/c++/13/complex:395:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const complex<_Tp>&, const complex<_Tp>&)’ 395 | operator*(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/13/complex:395:5: note: template argument deduction/substitution failed: main.cpp:869:37: note: ‘std::vector<std::__cxx11::basic_string<char> >’ is not derived from ‘const std::complex<_Tp>’ 869 | vector<string> s((N+(K-1-k))/K,*s); | ^ /usr/include/c++/13/complex:404:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const complex<_Tp>&, const _Tp&)’ 404 | operator*(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/13/complex:404:5: note: template argument deduction/substitution failed: main.cpp:869:37: note: ‘std::vector<std::__cxx11::basic_string<char> >’ is not derived from ‘const std::complex<_Tp>’ 869 | vector<string> s((N+(K-1-k))/K,*s); | ^ /usr/include/c++/13/complex:413:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const _Tp&, const complex<_Tp>&)’ 413 | operator*(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/13/complex:413:5: note: template argument deduction/substitution failed: main.cpp:869:37: note: candidate expects 2 arguments, 1 provided 869 | vector<string> s((N+(K-1-k))/K,*s); |
ソースコード
ll@N,@K,b=1;string@S[N],@T[N];rep(k,K){VS s((N+(K-1-k))/K,*s),t=s;rep(i,k,N,K)s[i/K]=S[i],t[i/K]=T[i];sortV(s);sortV(t);b&=s==t;}wt(b?"Yes":"No");