結果
| 問題 | No.1941 CHECKER×CHECKER(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-23 22:40:10 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 3,228 ms |
| コンパイル使用メモリ | 165,888 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-26 22:27:35 |
| 合計ジャッジ時間 | 3,848 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
コンパイルメッセージ
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 long>' requested here
688 | return newArraysRec_<T>()(std::forward<A>(a)...);
| ^
out.cpp:1609:11: note: in instantiation of function template specialization 'newArrays_<std::shared_ptr<Array_<std::shared_ptr<Array_<char16_t>>>>, long long>' requested here
1609 | (k_am) = (newArrays_<type_(Array_<type_(Array_<char16_t>)>)>((3LL)));
| ^
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 s: [][]char :: #[3][]char
for i(0, 2)
do s[i] :: cui@input()
end for
var ans: bool :: true
for i(0, 2)
for j(0, 2)
if(i <> 2 & s[i][j] = s[i + 1][j] | j <> 2 & s[i][j] = s[i][j + 1])
do ans :: false
break i
end if
end for
end for
do cui@print((ans ?("Yes", "No")) ~ "\n")
end func