回答編集履歴

2

追記

2018/11/11 16:11

投稿

asm
asm

スコア15147

test CHANGED
@@ -17,3 +17,15 @@
17
17
  print(strA.Length == strB.Length && strA.Select((A,ix) => A == strB[ix]).All(T=>T));
18
18
 
19
19
  ```
20
+
21
+
22
+
23
+ ---
24
+
25
+
26
+
27
+ 更に詳しく調べたところ、[Enumerable.SequenceEqual](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.sequenceequal)なんかもありましたが
28
+
29
+
30
+
31
+ 結局、普通にfor文ぶん回したほうが[速いらしいです。](https://wandbox.org/permlink/SZaSHSOoPMah6V2q)

1

追記

2018/11/11 16:11

投稿

asm
asm

スコア15147

test CHANGED
@@ -3,3 +3,17 @@
3
3
  print(strA.Select((A,ix) => A == strB[ix]).All(T=>T));
4
4
 
5
5
  ```
6
+
7
+
8
+
9
+ **追記**
10
+
11
+ 配列長違う場合を考慮してませんでした。
12
+
13
+
14
+
15
+ ```C#
16
+
17
+ print(strA.Length == strB.Length && strA.Select((A,ix) => A == strB[ix]).All(T=>T));
18
+
19
+ ```