From 071d2e0f49bce7f073338975b355e549fa0f4fa8 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 18 Apr 2021 21:55:42 -0500 Subject: Create test.cs --- test.cs | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test.cs diff --git a/test.cs b/test.cs new file mode 100644 index 0000000..48265c2 --- /dev/null +++ b/test.cs @@ -0,0 +1,32 @@ +// C# + +using System; +class test +{ + static int gcd(int a, int b) + { + if (b > 0) return gcd(b, a % b); + else return a; + } + static void Main() + { + Console.WriteLine("test"); + + const int N = 1000; + int[] A = new int[N]; + for (int i = 0; i < N; i++) + { + A[i] = i; + } + + int ans = 0; + for (int i = 0; i < N; i++) + { + for (int j = 0; j < N; j++) + { + ans += gcd(i, j); + } + } + Console.WriteLine(ans); + } +} -- cgit v1.2.3-70-g09d2