buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#define TEST
#undef TEST //実装時にはこれをコメントアウトしないようにすること
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program {
static void Main(string[] args) {
var q = new AnswerCollecter<string>();
int n = sc.NextInt();
string[] users = new string[n];
... | #define TEST
#undef TEST //実装時にはこれをコメントアウトしないようにすること
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sc = Scanner;
class Program {
static void Main(string[] args) {
var q = new AnswerCollecter<string>();
int n = sc.NextInt();
string[] users = new string[n];
... | [["+", 0, 57, 64, 196, 0, 57, 15, 241, 0, 111], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 64, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 64, 196, 0, 1, 0, 11, 12, 211, 0, 146], ["+", 64, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 57, 64, 196, 0, 46], [... | 8 | 773 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY<T>
where T : IComparable {
public T X, Y;
public bool Flag = false;
public PointXY(T _X, T _Y) {
X = _X;
Y = _Y;
}
public static bool operat... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using CHY72;
namespace CHY72 {
public class PointXY<T>
where T : IComparable {
public T X, Y;
public bool Flag = false;
public PointXY(T _X, T _Y) {
X = _X;
Y = _Y;
}
public static bool operat... | [["-", 0, 200, 0, 212, 0, 230, 39, 236, 141, 22], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 18], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 21], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 47], ["-", 0, 200, 0, 212, 0, 230, 3, 4, 0, 24], ["-", 0, 200, 0, 212, 0, 230,... | 8 | 573 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class C {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[,] G = new int[n + 1, n + 1];
for (int i = 0; i < n; i++) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
class A {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[,] G = new int[n + 1, n + 1];
for (int i = 0; i < n; i++) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse)... | [["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 3, 4, 0, 28, 0, 16, 31, 204, 205, 22], [... | 8 | 234 |
using System;
namespace ALDS1_11_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[,] ans = new int[n, n];
string outs = null;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j)
ans[i, j] = 0;
string s = Console.ReadLine();
... | using System;
namespace ALDS111A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[,] ans = new int[n, n];
string outs;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j)
ans[i, j] = 0;
string s = Console.ReadLine();
strin... | [["-", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 215], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 31, 204, 206, 207, 0, 28, 0, 16, 12, 203], ["+", 0, 7, 8, 196, 0, 1, 0, 11, ... | 8 | 221 |
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
static bool[,] adja;
static int[] discoveryTime;
static int[] finishTime;
static int time = 0;
static void Main() {
int n ... | using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
class Program {
static bool[,] adja;
static int[] discoveryTime;
static int[] finishTime;
static int time = 0;
static void Main() {
int n ... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["... | 8 | 316 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20180319_AOJ {
class ALDS1_11B {
static int time;
static int[,] graph;
static int[,] outArr;
static void Main(string[] args) {
for (;;) {
string line = Console.ReadLine();
if (string.IsNullOrEmpty(l... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20180319_AOJ {
class ALDS1_11B {
static int time;
static int[,] graph;
static int[,] outArr;
static void Main(string[] args) {
for (;;) {
string line = Console.ReadLine();
if (string.IsNullOrEmpty(l... | [["-", 0, 7, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 35], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 7, ... | 8 | 357 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
const int WHITE = -10;
const int GRAY = -9;
// const int BLACK = 2;
static void Main(string[] args) {
SolveA(args);
// SolveB(args);
// SolveC(args);
// SolveD(args);
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
const int WHITE = -10;
const int GRAY = -9;
// const int BLACK = 2;
static void Main(string[] args) {
SolveA(args);
// SolveB(args);
// SolveC(args);
// SolveD(args);
}
... | [["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 24], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["... | 8 | 564 |
using System;
using System.IO;
using System.Linq;
namespace Graph_I {
class Connected_Components {
static int[] connectTree;
static int[] height;
public static int Root(int x) {
if (connectTree[x] == x)
return x;
else
return connectTree[x] = Root(connectTree[x]);
}
public static void Co... | using System;
using System.IO;
using System.Linq;
namespace Graph_I {
class Connected_Components {
static int[] connectTree;
static int[] height;
public static int Root(int x) {
if (connectTree[x] == x)
return x;
else
return connectTree[x] = Root(connectTree[x]);
}
public static void Co... | [["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["-", 0, 195, 8, 196, 0, 57, 15, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["-", 8, 196, 0, 57, 15, 213, 3, 4, 0, 21], ["+",... | 8 | 455 |
// Minimum_Spanning_Tree.cs
using System;
class Minimum_Spanning_Tree {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[,] matrix = new int[n, n];
int count = 0;
bool[] memoryPosition = new bool[n];
int[] m = new int[n];
for (int i = 0; i < n; i++) {
m[i] = int... | // Minimum_Spanning_Tree.cs
using System;
class Minimum_Spanning_Tree {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[,] matrix = new int[n, n];
int count = 0;
bool[] memoryPosition = new bool[n];
int[] m = new int[n];
for (int i = 0; i < n; i++) {
m[i] = int... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 196, 0, 7, 8, 196, 0, 1, 0, 35]] | 8 | 345 |
using System;
public class Program {
static private readonly int MAX = 100;
static private readonly int INFINITY = (1 << 21);
static private readonly int WHITE = 0;
static private readonly int GRAY = 1;
static private readonly int BLACK = 2;
static private int n = -1;
static private int[,] M = new int[M... | using System;
public class Program {
static private readonly int MAX = 100;
static private readonly int INFINITY = (1 << 21);
static private readonly int WHITE = 0;
static private readonly int GRAY = 1;
static private readonly int BLACK = 2;
static private int n = -1;
static private int[,] M = new int[M... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 44], ["-", 8, 196,... | 8 | 581 |
using System;
namespace _14_A {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
//????´¢???????????????
string searchWord = Console.ReadLine();
//?§??????????????????¢???
int foundIndex = s.IndexOf(searchWord);
while (0 <= foundIndex) {
//???????????£??... | using System;
namespace _14_A {
class Program {
static void Main(string[] args) {
string s = Console.ReadLine();
//????´¢???????????????
string searchWord = Console.ReadLine();
//?§??????????????????¢???
int foundIndex = s.IndexOf(searchWord);
while (0 <= foundIndex) {
//???????????£???... | [["-", 0, 200, 0, 212, 0, 16, 12, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 16, 12, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 16, 12, 214, 141, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214,... | 8 | 106 |
using System;
using System.Linq;
namespace aoj_ALDS1_1_A {
class MainClass {
public static void Main(string[] args) {
int numberCount = int.Parse(Console.ReadLine());
int[] numberArray = new int[numberCount];
numberArray =
Console.ReadLine().Split(' ').Select(d => int.Parse(d)).ToArray();
fo... | using System;
using System.Linq;
namespace aoj_ALDS1_1_A {
class MainClass {
public static void Main(string[] args) {
int numberCount = int.Parse(Console.ReadLine());
int[] numberArray = new int[numberCount];
numberArray =
Console.ReadLine().Split(' ').Select(d => int.Parse(d)).ToArray();
Co... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ... | 8 | 207 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Insertion_Sort {
class Program {
static void Main(string[] args) {
int num = int.Parse(Console.ReadLine());
string[] input = Console.ReadLine().Split(' ');
int[] nums = new int[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Insertion_Sort {
class Program {
static void Main(string[] args) {
int num = int.Parse(Console.ReadLine());
string input = Console.ReadLine();
string[] inputs = input.Split(' ')... | [["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["+", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["+", 8, 196, 0, 197, 0, 198... | 8 | 244 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
StringBuilder sb = new Stri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
StringBuilder sb = new Stri... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 199], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22],... | 8 | 194 |
using System;
class InsertionSort {
static void Main() {
int amount = int.Parse(Console.ReadLine().Replace("\n", ""));
string[] itemString = Console.ReadLine().Replace("\n", "").Split(' ');
int[] items = new int[amount];
for (int i = 0; i < amount; i++) {
items[i] = int.Parse(itemString[i]);
... | using System;
class InsertionSort {
static void Main() {
int amount = int.Parse(Console.ReadLine().Replace("\n", ""));
string[] itemString = Console.ReadLine().Replace("\n", "").Split(' ');
int[] items = new int[amount];
for (int i = 0; i < amount; i++) {
items[i] = int.Parse(itemString[i]);
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 72], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 12, 22... | 8 | 303 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AthleteProgramming2 {
class Program {
static void Main() {
int[] array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
InsertSort(array);
}
static void InsertSort(int[] array) {
for (int k = ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AthleteProgramming2 {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
n -= 1;
int[] array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
InsertSort(array);
}
... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214... | 8 | 248 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace paizaTest {
internal class Program {
private static void Main(string[] args) {
var count = int.Parse(Console.ReadLine());
var oneLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
for (int i = 1; i < count; i++) {... | using System;
using System.Collections.Generic;
using System.Linq;
namespace paizaTest {
internal class Program {
private static void Main(string[] args) {
var count = int.Parse(Console.ReadLine());
var oneLine = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
Console.WriteLine(
string... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 199], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, ... | 8 | 182 |
using System;
// using System.Collections.Generic;
// using System.Collections;
using System.Linq;
namespace solution {
class Class1 {
static void Main() {
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split().Select(int.Parse).ToArray();
insertionSort(N, A);
}
public static v... | using System;
// using System.Collections.Generic;
// using System.Collections;
using System.Linq;
namespace solution {
class Class1 {
static void Main() {
int N = int.Parse(Console.ReadLine());
int[] A = Console.ReadLine().Split().Select(int.Parse).ToArray();
var B = A.Select(c => c.ToString()).ToArray... | [["+", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214,... | 8 | 195 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] str = Console.ReadLine()
.Split(' ')
.Select(... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Linq;
namespace tmplete {
class InsertionSort {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] str = Console.ReadLine()
.Split(' ')
... | [["+", 36, 36, 36, 36, 0, 208, 0, 209, 0, 256], ["+", 36, 36, 36, 36, 0, 208, 0, 209, 141, 22], ["+", 36, 36, 0, 208, 0, 209, 8, 201, 0, 45], ["-", 36, 36, 36, 36, 0, 208, 0, 235, 141, 22], ["+", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, ... | 8 | 213 |
using System;
using System.Collections.Generic;
using System.Linq;
public class program {
public static void Main() {
Console.ReadLine();
var S = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
Console.ReadLine();
var T = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToAr... | using System;
using System.Collections.Generic;
using System.Linq;
public class program {
public static void Main() {
Console.ReadLine();
var S = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
Console.ReadLine();
var T = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToAr... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["-", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ... | 8 | 230 |
using System;
using System.Linq;
using System.Collections.Generic;
public class BinarySearch {
public static void Main() {
Console.ReadLine();
var sList = ReadLineAndToIntList();
Console.ReadLine();
var tList = ReadLineAndToIntList();
int count = 0;
foreach (var s in sList) {
if (tLis... | using System;
using System.Linq;
using System.Collections.Generic;
public class BinarySearch {
public static void Main() {
Console.ReadLine();
List<int> sList = ReadLineAndToIntList();
Console.ReadLine();
List<int> tList = ReadLineAndToIntList();
int count = 0;
foreach (var t in tList) {
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 19... | 8 | 129 |
using System;
using System.Linq;
using System.Collections.Generic;
public class BinarySearch {
public static void Main() {
Console.ReadLine();
var sList = ReadLineAndToIntList();
Console.ReadLine();
var tList = ReadLineAndToIntList();
int count = 0;
foreach (var s in sList) {
if (tLis... | using System;
using System.Linq;
using System.Collections.Generic;
public class BinarySearch {
public static void Main() {
Console.ReadLine();
var sList = ReadLineAndToIntList().ToList();
Console.ReadLine();
var tList = ReadLineAndToIntList();
int count = 0;
foreach (var t in tList) {
... | [["+", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["+", 0, 200, 0, 212, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12... | 8 | 129 |
using System;
using System.Collections.Generic;
namespace ALDS_1_4_C_Dictionary_ {
class Program {
static void Main(string[] args) {
Dictionary<string, string> dict = new Dictionary<string, string>();
int n = getint();
for (int i = 0; i < n; i++) {
string[] str = getsplit();
if (str[0] == "in... | using System;
using System.Collections.Generic;
namespace ALDS_1_4_C_Dictionary_ {
class Program {
static void Main(string[] args) {
// hashset??????????????????????????????dictionary?????????
var hash = new HashSet<string>();
int n = getint();
for (int i = 0; i < n; i++) {
string[] str = gets... | [["-", 8, 196, 0, 197, 0, 198, 39, 236, 141, 22], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 18], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 21], ["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 47], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, ... | 8 | 193 |
using System;
using System.Collections;
class Program {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var hashtable = new Hashtable();
for (var i = 0; i < n; i++) {
var s = Console.ReadLine().Split(' ');
if (s[0][0] == 'f') {
Console.WriteLine(hashtable.ContainsKe... | using System;
using System.Collections;
class Program {
public static void Main() {
var n = int.Parse(Console.ReadLine());
var hashtable = new Hashtable();
for (var i = 0; i < n; i++) {
var s = Console.ReadLine().Split(' ');
if (s[0][0] == 'f') {
Console.WriteLine(hashtable.ContainsKe... | [["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 57, 75, 196, 0, 57, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 15, 241, 0, 111], ["+", 0, 57, 15, 241, 0, 213, 63, 214, 141, 22], ["+", 0, 57, 15, 241, 0, 213, 3, 4, 0, 24], ["+", 0, 213, 3, 4, 0, 28, 0, 204, 205, 22], ["+", 3, 4, 0, 28, 0, 204, 206, 207, 0, 70]... | 8 | 128 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
public static bool[] hash = new bool[ulong.MaxValue];
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2 {
class Program {
public static bool[] hash = new bool[(int)Math.Pow(5, 11)];
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
stri... | [["-", 0, 227, 39, 224, 225, 226, 0, 214, 205, 199], ["+", 0, 227, 39, 224, 225, 226, 0, 74, 0, 24], ["+", 0, 227, 39, 224, 225, 226, 0, 74, 39, 199], ["+", 0, 227, 39, 224, 225, 226, 0, 74, 0, 25], ["+", 225, 226, 0, 74, 51, 213, 63, 214, 205, 22], ["-", 0, 227, 39, 224, 225, 226, 0, 214, 141, 22], ["+", 225, 226, 0, ... | 8 | 286 |
using System;
namespace _4_C {
class Program {
static void Main(string[] args) {
bool[] x = new bool[16777300];
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split();
int now = 0;
int a = 1;
for (int j = 0; j < s[1].Length; j+... | using System;
namespace _4_C {
class Program {
static void Main(string[] args) {
bool[] x = new bool[244140700];
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split();
int now = 0;
int a = 1;
for (int j = 0; j < s[1].Length; j... | [["-", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["+", 0, 212, 0, 227, 39, 224, 225, 226, 0, 203], ["-", 0, 239, 0, 264, 0, 23, 0, 252, 0, 253], ["+", 0, 239, 0, 264, 0, 23, 0, 252, 0, 253], ["-", 0, 99, 8, 254, 0, 239, 0, 265, 0, 162], ["+", 0, 99, 8, 254, 0, 239, 0, 264, 0, 173], ["+", 8, 254, 0, 239, 0, 264, 0, 23... | 8 | 221 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] first = Console.ReadLine().Split();
int n = int.Parse(first[0]);
int k = int.Parse(first[1]);
int[] w = new int[n];
for (int... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] first = Console.ReadLine().Split();
int n = int.Parse(first[0]);
int k = int.Parse(first[1]);
int[] w = new int[n];
for (int... | [["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 25], ["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 45], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 16, 31, 204, 205, 22], ["+... | 8 | 316 |
using System;
namespace AOJ.ALDS {
public class ExhaustiveSearch {
private static int length;
private static int[] items;
private static bool Solve(int i, int m) {
if (i == length) {
return false;
}
if (m == 0) {
return true;
}
// 再帰呼び出し
bool res1 = S... | using System;
namespace AOJ.ALDS {
public class ExhaustiveSearch {
private static int length;
private static int[] items;
private static bool Solve(int i, int m) {
if (m == 0) {
return true;
}
if (i == length) {
return false;
}
// 再帰呼び出し
bool res1 = S... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 57, 64, 196, 0, 37, 0, 211, 0, 147], ["+", 0, 57, 64, 196, 0, 37, 0, 211, 0, 146], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 2... | 8 | 252 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N;
public int[] A;
public void Run() {
N = Input.ReadInt();
A = Input.ReadIntArray();
long ret = dfs(0, N);
Console.WriteLine(ret);
}
long dfs(in... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Competitive {
internal class Solution {
public int N;
public int[] A;
public void Run() {
N = Input.ReadInt();
A = Input.ReadIntArray();
long ret = dfs(0, N);
Console.WriteLine(ret);
}
long dfs(in... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 107], ["+", 8, 196, 0, 1, 0, 11, 12, 213, 63, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 24], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 213, 3, 4, 0, 25], ["+", 8, 201, 0, ... | 8 | 440 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA(args);
// SolveB(args);
// SolveC(args);
// SolveD(args);
}
static void SolveA(string[] args) {
int.Parse(Console.ReadLine());
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Practice {
class Program {
static void Main(string[] args) {
SolveA(args);
// SolveB(args);
// SolveC(args);
// SolveD(args);
}
static void SolveA(string[] args) {
int.Parse(Console.ReadLine());
... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 141, 22], ... | 8 | 322 |
using System;
using System.IO;
using System.Linq;
namespace Sort_II {
class AOJ_Partition {
static void Main(string[] args) {
Console.ReadLine();
var A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var p = 0;
var r = A.Length - 1;
var sw =
new StreamWriter(Console.... | using System;
using System.IO;
using System.Linq;
namespace Sort_II {
class AOJ_Partition {
static void Main(string[] args) {
Console.ReadLine();
var A = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
var p = 0;
var r = A.Length - 1;
var sw =
new StreamWriter(Console.... | [["-", 0, 57, 15, 16, 12, 16, 31, 214, 205, 22], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 0, 131], ["-", 0, 57, 15, 16, 12, 16, 31, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 57, 75, 57, ... | 8 | 357 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。
long[,] area = new long[1002, 1002]; //シールを貼った部分
long answer = 0;
for (long i = 0; i < n; i++) {
long[] nums = ... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
class Program {
static void Main() {
long n = long.Parse(Console.ReadLine()); // long.Parseはstringをlongに変換。
long[,] area = new long[1002, 1002]; //シールを貼った部分
long answer = 0;
for (long i = 0; i < n; i++) {
long[] nums = ... | [["-", 0, 204, 206, 207, 0, 28, 0, 16, 17, 72], ["-", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 321 |
using System;
using System.Collections.Generic;
using System.Linq;
class PriorityQueue<T>
where T : IComparable<T> {
private List<T> _buf = new List<T>();
private IComparer<T> _comp;
private void Swap(int a, int b) {
T t = _buf[a];
_buf[a] = _buf[b];
_buf[b] = t;
}
private int Compare(T a, ... | using System;
using System.Collections.Generic;
using System.Linq;
class PriorityQueue<T>
where T : IComparable<T> {
private List<T> _buf = new List<T>();
private IComparer<T> _comp;
private void Swap(int a, int b) {
T t = _buf[a];
_buf[a] = _buf[b];
_buf[b] = t;
}
private int Compare(T a, ... | [["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 57, 15, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 213, 3, 4, 0, 24], ["+", 15, 213, 3, 4, 0, 28, 0, 214, 205,... | 8 | 868 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
/// <summary>
/// find the shortest path from start to all destination
/// works for directed/nondirected graph
/// </summary>
public class BellmanFord {
public List<edge>... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
/// <summary>
/// find the shortest path from start to all destination
/// works for directed/nondirected graph
/// </summary>
public class BellmanFord {
public List<edge>... | [["+", 0, 210, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 52, 8, 196, 0, 210, 8, 196, 0, 46], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 24], ["+", 0, 52, 8, 196, 0, 57, 15, 241, 0, 111], ["+", 0, 52, 8, 196, 0, 57, 15, 241, 0, 22], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 25], ["+"... | 8 | 748 |
using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var e = int.Parse(line[1]);
var dp = new int[n, n];
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
if (i == j)
dp[i, j]... | using System;
public class Hello {
public static void Main() {
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var e = int.Parse(line[1]);
var dp = new long[n, n];
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
if (i == j)
dp[i, j... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 7, 8, 57, 75, 1, 0, 11, 12, 203], ["+", 8, 7, 8, 57, 75, 1, 0, 11, 12, 203], ["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["+", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 8, 57, 64, 196, 0, 57, 15, 16, ... | 8 | 512 |
using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
static int v = int.Parse(input[0]);
static int e = int.Parse(input[1]);
static List<int>[] nextL... | using System;
using System.Linq; //リストの使用
using System.Collections.Generic;
using System.Text; //テキストの高速出力に必要
class Program {
static string[] input = Console.ReadLine().Split(
' '); // Splitで区切り文字を指定して複数個受け取る。
static int v = int.Parse(input[0]);
static int e = int.Parse(input[1]);
static List<int>[] nextL... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 0, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 0, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 0, 213, 63, 214, ... | 8 | 592 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int(), M = Reader.Int();
var E = Enu.Range(0, ... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Diagnostics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int(), M = Reader.Int();
var E = Enu.Range(0, ... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 64, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 0, 213, 3, 4, 0, 28, 0, 241, 0, 92], ["+", 0, 52, 8, 196, 0, 57, 15, 204, 205, 22], ["+", 8, 196, 0, 57, 15, 204, 206, 207, 0, ... | 8 | 869 |
using System;
namespace ITP1_10_A {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] numbers = input.Split(' ');
int x1 = int.Parse(numbers[0]);
int y1 = int.Parse(numbers[1]);
int x2 = int.Parse(numbers[2]);
int y2 = int.Parse(numbers[3]);
do... | using System;
namespace ITP1_10_A {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
string[] numbers = input.Split(' ');
double x1 = double.Parse(numbers[0]);
double y1 = double.Parse(numbers[1]);
double x2 = double.Parse(numbers[2]);
double y2 = double.Pa... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 161 |
using System;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
string[] data = Console.ReadLine().Split(' ');
int x1 = int.Parse(data[0]);
int y1 = int.Parse(data[1]);
int x2 = int.Parse(data[2]);
int y2 = int.Parse(data[3]);
double ans = Math.Sqrt((x2 - x1) * (x2 - x... | using System;
namespace AizuOnLine {
class Program {
static void Main(string[] args) {
string[] data = Console.ReadLine().Split(' ');
double x1 = double.Parse(data[0]);
double y1 = double.Parse(data[1]);
double x2 = double.Parse(data[2]);
double y2 = double.Parse(data[3]);
double ans = Math.... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 138 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
int x1 = int.Parse(s[0]);
int y1 = int.Parse(s[1]);
int x2 = int.Parse(s[2]);
int y2 ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
double x1 = double.Parse(s[0]);
double y1 = double.Parse(s[1]);
double x2 = double.Parse(... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199]] | 8 | 158 |
using System;
using System.Linq;
public class Program {
public static void Main(string[] args) {
double[] doubleArray = new double[4];
doubleArray = Console.ReadLine()
.Trim()
.Split(' ')
.Select(x => double.Parse(x))
.To... | using System;
using System.Linq;
public class Program {
public static void Main(string[] args) {
double[] doubleArray = new double[4];
doubleArray = Console.ReadLine()
.Trim()
.Split(' ')
.Select(x => double.Parse(x))
.To... | [["+", 0, 28, 0, 16, 31, 213, 63, 214, 141, 22], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 205, 22], ["+", 3, 4, 0, 28, 0, 213, 63, 214, 0, 131], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25], ["+", 0, 28, 0, 16, 31, 213, 3, 4, 0, 21], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, ... | 8 | 435 |
using System;
namespace ITP1_10_A {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
double x1 = double.Parse(s[0]), y1 = double.Parse(s[1]),
x2 = double.Parse(s[2]), y2 = double.Parse(s[3]);
double distance = Math.Sqrt((x2 - x1) + (y2 - y1));
C... | using System;
namespace ITP1_10_A {
class Program {
static void Main(string[] args) {
string[] s = Console.ReadLine().Split(' ');
double x1 = double.Parse(s[0]), y1 = double.Parse(s[1]),
x2 = double.Parse(s[2]), y2 = double.Parse(s[3]);
double distance = Math.Sqrt((x2 - x1) * (x2 - x1) + (y2 -... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 48], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 24], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 28, 0, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 28, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, ... | 8 | 116 |
using System;
// using System.Collections.Generic;
// using System.Linq;
namespace solution {
class Class1 {
static void Main() {
string[] s = Console.ReadLine().Split();
int x1 = int.Parse(s[0]);
int y1 = int.Parse(s[1]);
int x2 = int.Parse(s[2]);
int y2 = int.Parse(s[3]);
Console.WriteLine... | using System;
// using System.Collections.Generic;
// using System.Linq;
namespace solution {
class Class1 {
static void Main() {
string[] s = Console.ReadLine().Split();
double x1 = double.Parse(s[0]);
double y1 = double.Parse(s[1]);
double x2 = double.Parse(s[2]);
double y2 = double.Parse(s[3])... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 16, 31, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 16, 31, 213, 3, 4, 0, 28, 0, 250], ["-", 0, 16, 12, 213, 3, 4, 0, 28, ... | 8 | 123 |
using System;
class Program {
private static int Main() {
var input = Console.ReadLine();
var values = input.Split(' ');
var a = int.Parse(values[0]);
var b = int.Parse(values[1]);
var C = int.Parse(values[2]);
var rad = C * Math.PI / 180;
var S = a * b * Math.Sin(rad) / 2;
var L = ... | using System;
class Program {
private static int Main() {
var input = Console.ReadLine();
var values = input.Split(' ');
var a = int.Parse(values[0]);
var b = int.Parse(values[1]);
var C = int.Parse(values[2]);
var rad = C * Math.PI / 180;
var S = a * b * Math.Sin(rad) / 2;
var L =
... | [["-", 0, 200, 0, 212, 0, 16, 31, 16, 31, 22], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 17, 72], ["-", 0, 200, 0, 212, 0, 16, 31, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 33], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 31, 203], ["+", 0, 16, 12, 16, 31, 16, 31, 16, 17, 48],... | 8 | 168 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication20 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double a = double.Parse(str[0]);
double b = double.Parse(str[1]);
int C = int.Parse(st... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication20 {
class Program {
static void Main(string[] args) {
string[] str = Console.ReadLine().Split(' ');
double a = double.Parse(str[0]);
double b = double.Parse(str[1]);
int C = int.Parse(st... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, 3, 4, 0, 24], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 24], ["-", 0, 28, 0, 16, 31, 23, 0, 16, 12, 22], ["-", 3, 4, 0, 28, 0, 16, 31, 23, 0, 25], [... | 8 | 212 |
using System.Linq;
using System;
class A {
static void Main() {
double[] CS = Console.ReadLine().Split().Select(double.Parse).ToArray();
var h = Math.Sin(CS[2] * (Math.PI / 180)) * CS[0];
Console.WriteLine(h * CS[1] / (double)2);
var Acchi = CS[1] - Math.Cos(CS[2] * (Math.PI / 180)) * CS[0];
Con... | using System.Linq;
using System;
class A {
static void Main() {
double[] CS = Console.ReadLine().Split().Select(double.Parse).ToArray();
var h = Math.Sin(CS[2] * (Math.PI / 180)) * CS[0];
Console.WriteLine(h * CS[1] / (double)2);
var Acchi = CS[1] - Math.Cos(CS[2] * (Math.PI / 180)) * CS[0];
Cons... | [["+", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["+", 0, 28, 0, 16, 31, 16, 12, 204, 205, 22], ["+", 0, 16, 31, 16, 12, 204, 206, 207, 0, 70], ["+", 31, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 31, 16, 12, 204, 206, 207, 0, 73], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["+", 3, 4, 0, 28, 0, 16, 12, 204, 205, 2... | 8 | 157 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_10C {
class Program {
static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
var n = int.Parse(input);
if (n == 0) {
break;
}
input = Console.Read... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ITP1_10C {
class Program {
static void Main(string[] args) {
while (true) {
var input = Console.ReadLine();
var n = int.Parse(input);
if (n == 0) {
break;
}
input = Console.Read... | [["-", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22], ["-", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 3, 4, 0, 28, 0, 218, 54, 55, 0, 21], ["+", 0, 28, 0, 218, 54, 55, 0, 220, 141, 22]] | 8 | 181 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static int Average(int[] data) {
int sum = 0;
for (int i = 0; i < data.Length; i++) {
sum += data[i];
}
return sum / data.Length;
}
static void M... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace StartFinish {
class Program {
static double Average(double[] data) {
double sum = 0;
for (int i = 0; i < data.Length; i++) {
sum += data[i];
}
return sum / data.Length;
}
stat... | [["-", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 39, 199], ["-", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["+", 0, 195, 54, 55, 0, 220, 39, 224, 39, 199], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 52, 8, 196, 0, 197, ... | 8 | 218 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Distance_II {
class Program {
static void Main(string[] args) {
int times = int.Parse(Console.ReadLine());
string[] line1 = Console.ReadLine().Split(' ');
string[] line2 = Console... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Distance_II {
class Program {
static void Main(string[] args) {
int times = int.Parse(Console.ReadLine());
string[] line1 = Console.ReadLine().Split(' ');
string[] line2 = Console... | [["-", 0, 213, 3, 4, 0, 28, 0, 16, 12, 203], ["+", 0, 213, 3, 4, 0, 28, 0, 16, 12, 250], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21]] | 8 | 294 |
using System;
namespace ALDS1 {
class Program {
static void Main(string[] args) {
int n = getint();
string[] input = getsplit();
string[] a = new string[n];
string[] b = new string[n];
for (int i = 0; i < n; i++) {
a[i] = input[i];
b[i] = input[i];
}
for (int i = 0; i < n; i++... | using System;
namespace ALDS1 {
class Program {
static void Main(string[] args) {
int n = getint();
string[] input = getsplit();
string[] a = new string[n];
string[] b = new string[n];
for (int i = 0; i < n; i++) {
a[i] = input[i];
b[i] = input[i];
}
for (int i = 0; i < n; i++... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, 146], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 2... | 8 | 455 |
using System;
using System.Linq;
public class StableSort {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
string data = Console.ReadLine();
string[] bubble = data.Split(); //?????????????????°??????
string[] selection = data.Split();
string stable = "Stable";... |
using System;
using System.Linq;
public class StableSort {
public static void Main(string[] args) {
int count = int.Parse(Console.ReadLine());
string data = Console.ReadLine();
string[] bubble = data.Split(); //?????????????????°??????
string[] selection = data.Split();
string stable = "Stable";... | [["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 88], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 24], ["+", 0, 7, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["+", 10, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+"... | 8 | 476 |
using System;
namespace Test {
class MainClass {
public static int cnt = 0;
public static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
var nums = new int[num];
for (int i = 0; i < nums.Length; i++) {
nums[i] = int.Parse(Console.ReadLine());
}
ShellSort(nums);
A... | using System;
namespace Test {
class MainClass {
public static int cnt = 0;
public static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
var nums = new int[num];
for (int i = 0; i < nums.Length; i++) {
nums[i] = int.Parse(Console.ReadLine());
}
ShellSort(nums);
A... | [["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 10, 198, 0, 200, 0, 212, 0, 16, 12, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], ... | 8 | 378 |
using System;
using System.Collections.Generic;
public class ShellSort {
public int cnt = 0;
// ?????§???????????????????????¢?????´?????????
public void sort(int[] T, int n) {
// int[] G = new int[m];
List<int> G = new List<int>();
// G????¨????
for (int i = 0; i < n; i++) {
if (i == 0... | using System;
using System.Collections.Generic;
public class ShellSort {
public int cnt = 0;
// ?????§???????????????????????¢?????´?????????
public void sort(int[] T, int n) {
// int[] G = new int[m];
List<int> G = new List<int>();
// G????¨????
for (int i = 0; i < n; i++) {
if (i == 0... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 450 |
using System;
namespace ALDS1 {
class Program {
static void Main(string[] args) {
int n = getint();
int[] A = new int[n + 1];
for (int i = 0; i < n; i++) {
A[i] = getint();
}
int m = 0;
int k = 1;
for (int i = 0; i < int.MaxValue; i++) {
m++;
k = 3 * k + 1;
if (k >... | using System;
namespace ALDS1 {
class Program {
static void Main(string[] args) {
int n = getint();
int[] A = new int[n + 1];
for (int i = 0; i < n; i++) {
A[i] = getint();
}
int m = 0;
int k = 1;
for (int i = 0; i < int.MaxValue; i++) {
m++;
k = 3 * k + 1;
if (k >... | [["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 444 |
using System;
class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] array = new int[n];
for (int k = 0; k < n; k++) {
array[k] = int.Parse(Console.ReadLine());
}
int cnt = 0;
int m = 0; //?????£??????????????°???h=3???m?????????/??? h<n???... | using System;
class Program {
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] array = new int[n];
for (int k = 0; k < array.Length; k++) {
array[k] = int.Parse(Console.ReadLine());
}
int cnt = 0;
int m = 1; //?????£??????????????°???h=3???m?????????... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 7, 15, 16, 12, 214, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, ... | 8 | 432 |
using System;
using System.IO;
// using System.Collections.Generic;
class Program {
public static void Main(string[] args) {
//??????????????§??°??????????????????????????¨??????????????????????????????????????£????????????
Stream inputStream = Console.OpenStandardInput();
StreamReader sr = new StreamRe... | using System;
using System.IO;
// using System.Collections.Generic;
class Program {
public static void Main(string[] args) {
//??????????????§??°??????????????????????????¨??????????????????????????????????????£????????????
Stream inputStream = Console.OpenStandardInput();
StreamReader sr = new StreamRe... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, ... | 8 | 552 |
// Sort I - Shell Sort
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_2_D
using System;
using System.Linq;
using System.Collections.Generic;
namespace ALDS1_2_D {
class Program {
public Program() {}
public static void Main() { new Program().Calc(); }
void Calc() {
var N = int.Parse(Input... | // Sort I - Shell Sort
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_2_D
using System;
using System.Linq;
using System.Collections.Generic;
namespace ALDS1_2_D {
class Program {
public Program() {}
public static void Main() { new Program().Calc(); }
void Calc() {
var N = int.Parse(Input... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 62], ["-", 0, 28, 0, 16, 31, 16, 31, 5, 0, 222], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 17, 72], ["-", 3, 4, 0, 28, 0, 16, 31, 16, 12, 22], ["-", 0, 213, 3, 4, 0, 28, 0, 16, 17, 72], ["-", 3, 4, 0, 2... | 8 | 443 |
using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
public static IO IO = new IO();
static void Main(string[] args) {
string[] n = IO.STRING(' ');
STACK<string> s = new STACK<string>(n.Count());
for (int i = 0; i < n.Count(); i++) {
if ... | using LIB;
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
class Program {
public static IO IO = new IO();
static void Main(string[] args) {
string[] n = IO.STRING(' ');
STACK<string> s = new STACK<string>(n.Count());
for (int i = 0; i < n.Count(); i++) {
if ... | [["-", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["+", 8, 201, 0, 235, 8, 201, 0, 195, 141, 22], ["-", 0, 37, 0, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 37, 0, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 21... | 8 | 1,176 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Linq.Expressions;
static class Program {
static void Main() { new Magatro().Solve(); }
}
class Magatro {
private string[] S;
private void Scan() { S = Console.ReadLine().Split(' '); }
public void Solve()... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Linq.Expressions;
static class Program {
static void Main() { new Magatro().Solve(); }
}
class Magatro {
private string[] S;
private void Scan() { S = Console.ReadLine().Split(' '); }
public void Solve()... | [["-", 0, 198, 0, 200, 0, 212, 0, 16, 31, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 72], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 12, 22], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["+", 0, 198, 0, 200, 0, 212, 0, 16, 17, 33], ["-", 0, 198, 0, 200, 0, 212, 0, 16, 17, 48... | 8 | 286 |
using System;
class A {
static int top;
static int[] s = new int[300];
public static void Main() {
string[] Stack = Console.ReadLine().Split(' ');
foreach (string d in Stack) {
foreach (char data in d) {
if (char.IsNumber(data)) {
Push(data - '0');
} else {
int a... | using System;
class A {
static int top;
static int[] s = new int[300];
public static void Main() {
string[] Stack = Console.ReadLine().Split(' ');
foreach (string d in Stack) {
int i;
if (int.TryParse(d, out i)) {
Push(i);
} else {
int a = Pop();
int b = Pop();
... | [["-", 8, 196, 0, 210, 8, 196, 0, 210, 0, 266], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 0, 24], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 39, 199], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 31, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 0, 267], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 12, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 210,... | 8 | 264 |
using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
var inputs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var n = inputs[0];
var p = inputs[1];
var time = 0;
var queue = new Queue<Process>(n);
for (int i = 0; i < n; i++) {
var temp =... | using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
var inputs = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
var n = inputs[0];
var p = inputs[1];
var time = 0;
var queue = new Queue<Process>(n);
while (queue.IsFull() == false) {
var te... | [["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 52, 0, 89], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["-", 8, 196, 0, 7, 10, 198, 0, 200, 141, 22], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 201, 0, 195, 8, 196, 0, 7, 0, 35], [... | 8 | 394 |
using System;
using System.IO;
using System.Collections;
namespace DefaultNamespace {
public class Class1 {
public static void Main(string[] args) {
Queue q = new Queue();
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
// output??????
... |
using System;
using System.IO;
using System.Collections;
namespace DefaultNamespace {
public class Class1 {
public static void Main(string[] args) {
Queue q = new Queue();
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
// output??????
... | [["+", 0, 263, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 263, 8, 196, 0, 1, 0, 35], ["-", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["-", 0, ... | 8 | 607 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
class Program {
static StreamWriter sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static Scan sc = new Scan();
static void Main() {
int n, q... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.IO;
using System.Text;
class Program {
static StreamWriter sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
static Scan sc = new Scan();
static void Main() {
int n, q... | [["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 31, 16, 31, 23, 0, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 17, 33], ["+", 15, 16, 12, 16, 31, 23, 0, 16, 12, 203]... | 8 | 1,456 |
using System;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
var n = int.Parse(input[0]);
var list = new List<string>();
for (var i = 0; i < n; i++) {
input = Console.ReadLine().Split();
if (input[0] == "insert... | using System;
using System.Text;
namespace AOJ {
class Program {
static void Main(string[] args) {
var input = Console.ReadLine().Split();
var n = int.Parse(input[0]);
var list = new List<string>();
for (var i = 0; i < n; i++) {
input = Console.ReadLine().Split();
if (input[0] == "insert... | [["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 121], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 24], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 57, 0, 25], ["+", 0, 195, 8, 196, 0, 57, 64, 196, 0, 45],... | 8 | 590 |
using System;
using System.Collections.Generic;
namespace Project {
class MainClass {
public static LinkedList<int> list = new LinkedList<int>();
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split(' ');... | using System;
using System.Collections.Generic;
namespace Project {
class MainClass {
public static LinkedList<int> list = new LinkedList<int>();
public static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
for (int i = 0; i < n; i++) {
string[] s = Console.ReadLine().Split(' ');
... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 205, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["+", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 1... | 8 | 257 |
using System;
namespace DefaultNamespace {
/// <summary>
/// Description of Class1.
/// </summary>
public class Class1 {
public static void Main(String[] args) {
int n = int.Parse(Console.ReadLine());
var listA = new listArray();
for (int i = 0; i < n; i++) {
string com = Console.ReadLine();
... | using System;
namespace DefaultNamespace {
/// <summary>
/// Description of Class1.
/// </summary>
public class Class1 {
public static void Main(String[] args) {
int n = int.Parse(Console.ReadLine());
var listA = new listArray();
for (int i = 0; i < n; i++) {
string com = Console.ReadLine();
... | [["+", 8, 196, 0, 57, 64, 196, 0, 52, 0, 89], ["+", 8, 196, 0, 57, 64, 196, 0, 52, 0, 24], ["+", 64, 196, 0, 52, 15, 16, 31, 204, 205, 22], ["+", 0, 52, 15, 16, 31, 204, 206, 207, 0, 70], ["+", 15, 16, 31, 204, 206, 207, 0, 28, 0, 22], ["+", 0, 52, 15, 16, 31, 204, 206, 207, 0, 73], ["+", 0, 57, 64, 196, 0, 52, 15, 16,... | 8 | 406 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace LogicSummoner {
class Program {
static void Main(string[] args) {
var list = new LinkedList<int>();
var N = GetNumber();
for (int i = 0; i < N; i++) {
var lin... | using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace LogicSummoner {
class Program {
static void Main(string[] args) {
var list = new LinkedList<int>();
var N = GetNumber();
for (int i = 0; i < N; i++) {
var lin... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 0, 131], ["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 0, 200, 0, 212, 0, 213, ... | 8 | 462 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace ALDS1_3 {
class Progarm {
static void Main() {
var i = new LinkedList<string>();
var l = int.Parse(Console.ReadLine());
for (var j = 0; j < l; j++) {
var _t = Console.ReadLine().Split();
if (_t.Length == 1) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace ALDS1_3 {
class Progarm {
static void Main() {
var i = new LinkedList<string>();
var l = int.Parse(Console.ReadLine());
for (var j = 0; j < l; j++) {
var _t = Console.ReadLine().Split();
if (_t.Length == 1) {
... | [["-", 0, 57, 75, 1, 0, 213, 63, 214, 205, 22], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 0, 131], ["-", 0, 57, 75, 1, 0, 213, 63, 214, 141, 22], ["-", 0, 57, 75, 1, 0, 213, 3, 4, 0, 24], ["+", 0, 57, 75, 196, 0, 57, 75, 196, 0, 45], ["+", 75, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 75, 196, 0, 197, 0, 198, 0, 200, 141... | 8 | 184 |
//????????£20170319
//???????????£?§£????§£?±????.Tostring()???????????£???????????????
//????????????????????????20170314
// list<>???????????????????????§????????????????????????????????????????????£?????????????????????????????????????????????????°???????????????¬????????????????????¢?????´??????????????????????????... | //??????20170320
//???????????£?§£????§£?±????.Tostring()???????????£???????????????
//????????????????????????20170314
// list<>???????????????????????§????????????????????????????????????????????£?????????????????????????????????????????????????°???????????????¬????????????????????¢?????´???????????????????????????
... | [["-", 0, 52, 8, 196, 0, 52, 15, 16, 17, 60], ["-", 8, 196, 0, 52, 15, 16, 12, 241, 0, 33], ["-", 8, 196, 0, 52, 15, 16, 12, 241, 0, 203], ["+", 0, 52, 8, 196, 0, 52, 15, 16, 17, 20], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 205, 22], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 0, 131], ["+", 8, 196, 0, 52, 15, 16, 12, 214, 141... | 8 | 679 |
using System;
using System.Collections.Generic;
namespace Elementary_data_structures {
class Areas_on_the_Cross_Section_Diagram {
static void Main(string[] args) {
var token = Console.ReadLine();
// \ = 1
// / = 2
// _ = 3
var csd = new byte[token.Length];
var depth = new short[token.Length]... | using System;
using System.Collections.Generic;
namespace Elementary_data_structures {
class Areas_on_the_Cross_Section_Diagram {
static void Main(string[] args) {
var token = Console.ReadLine();
var csd = new byte[token.Length];
var depth = new short[token.Length];
short d = 0;
var inc = 0;
... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 16, 31, 16, 12, 241, 0, 33], ["-", 0, 57, 15, 16, 31, 16, 12, 241, 0, 203], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98], ["+", 0, 57, 75, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 57, 75, 57, 64, 196, 0, 93, 0, 35], ... | 8 | 604 |
using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
public class my {
private static StringBuilder sb = new StringBuilder();
public static void Main() {
Console.ReadLine();
var S = Console.ReadLine().Split(' ');
Console.ReadLine();
var T = Console.ReadLine().Spli... | using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
public class my {
private static StringBuilder sb = new StringBuilder();
public static void Main() {
Console.ReadLine();
var S = Console.ReadLine().Split(' ');
S = S.Distinct().ToArray();
Console.ReadLine();
... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 12, 213, 63, 214, 20... | 8 | 465 |
// Linear_Search.cs
using System;
using System.Collections.Generic;
class Linear_Search {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[] s = new int[n];
string str = Console.ReadLine();
string[] num = str.Split();
for (int i = 0; i < n; i++) {
s[i] = int.Parse(n... | // Linear_Search.cs
using System;
using System.Collections.Generic;
class Linear_Search {
public static void Main() {
int n = int.Parse(Console.ReadLine());
int[] s = new int[n];
string str = Console.ReadLine();
string[] num = str.Split();
for (int i = 0; i < n; i++) {
s[i] = int.Parse(n... | [["-", 8, 196, 0, 197, 0, 198, 39, 224, 39, 199], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 197, 0, 198, 39, 224, 225, 226, 0, 73], ["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 227, 0, 228], ["-", 0, 200, 0, 212, 0, 227, 3... | 8 | 257 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
int[] S = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Console.ReadLine();
int[] T = Array.Convert... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
Console.ReadLine();
int[] S = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Console.ReadLine();
int[] T = Array.Convert... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 31, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 210, 31, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 210,... | 8 | 148 |
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.IO;
public class Playground {
private static int[] item1;
private static int[] item2;
public static void Main(string[] args) {
Input();
Method();
System.Console.ReadLine();
}
private static void I... | using System.Collections.Generic;
using System.Linq;
using System.Text;
using System;
using System.IO;
public class Playground {
private static int[] item1;
private static int[] item2;
public static void Main(string[] args) {
Input();
Method();
System.Console.ReadLine();
}
private static void I... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 22], ["-", 0, 218, 8, 16, 12, 213, 63, 214, 205, 22], ["+", 0, 28, 0, 218, 8, 16, 12, 23, 0, 24], ["+", 12, 23, 0, 41, 15, 213, 63, 214, 205, 22], ["-", 0, 218, 8, 16, 12, 213, 63, 214, 141, 22], ["+", 12, 23, 0, 41, 15, 213, ... | 8 | 186 |
using System;
using System.Linq;
namespace _4_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] S = Console.ReadLine().Split().Select(int.Parse).ToArray();
int q = int.Parse(Console.ReadLine());
int[] T = Console.ReadLine().Split().Select(int.Parse).To... | using System;
using System.Linq;
namespace _4_A {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int[] s = Console.ReadLine().Split().Select(int.Parse).ToArray();
int q = int.Parse(Console.ReadLine());
int[] t = Console.ReadLine().Split().Select(int.Parse).To... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 198, 0, 200, 0, 212, 0, 211, 0, ... | 8 | 168 |
/*
* Created by SharpDevelop.
* User: yog-sothoth
* Date: 2017/03/20
* Time: 13:33
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
namespace DefaultNamespace {
/// <summary>
/// Description of Class1.
/// </summary>
public class LinerSearch {
/*
* n??????... | /*
* Created by SharpDevelop.
* User: yog-sothoth
* Date: 2017/03/20
* Time: 13:33
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
namespace DefaultNamespace {
/// <summary>
/// Description of Class1.
/// </summary>
public class LinerSearch {
/*
* n??????... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 21], ["+", 0,... | 8 | 300 |
using System;
using System.Linq;
namespace ALDS1_4_A {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var S = Console.ReadLine().Split(' ').Select(int.Parse);
Console.ReadLine();
var T = Console.ReadLine().Split(' ').Select(int.Parse);
int count = 0;
foreach (var s in S... | using System;
using System.Linq;
namespace ALDS1_4_A {
class Program {
static void Main(string[] args) {
Console.ReadLine();
var S = Console.ReadLine().Split(' ').Select(int.Parse);
Console.ReadLine();
var T = Console.ReadLine().Split(' ').Select(int.Parse);
int count = 0;
foreach (var t in T... | [["-", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 31, 22], ["-", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["+", 8, 201, 0, 195, 8, 196, 0, 210, 12, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 210, 31, 22], ["+", 8, 196, 0, 210, 8, 196, 0, 210, 31, 22], ["-", 8, 196, 0, 210, 8, 196, 0, 210,... | 8 | 128 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project {
class Card {
public char mark;
public int num;
public Card() {}
public Card(char mark, int num) {
this.mark = mark;
this.num = num;
}
}
class MainClass {
public static void Main(string[] args)... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project {
class Card {
public char mark;
public int num;
public Card() {}
public Card(char mark, int num) {
this.mark = mark;
this.num = num;
}
}
class MainClass {
public static void Main(string[] args)... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 205, 22], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["-", 12, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["-", 12, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["-", 0, 28, 0, 218, 54, 2... | 8 | 1,099 |
using System;
namespace ALDS1_6_C {
public static class Sort {
public delegate void SwapperAction<T>(ref T a, ref T b);
public static void QuickSort<T>(this T[] a, SwapperAction<T> swapper)
where T : IComparable { QuickSort(a, 0, a.Length - 1, swapper); }
private static void QuickSort<T>(T[] a, int s, int... | using System;
namespace ALDS1_6_C {
public static class Sort {
public delegate void SwapperAction<T>(ref T a, ref T b);
public static void QuickSort<T>(this T[] a, SwapperAction<T> swapper)
where T : IComparable { QuickSort(a, 0, a.Length - 1, swapper); }
private static void QuickSort<T>(T[] a, int s, int... | [["-", 8, 196, 0, 57, 75, 57, 15, 16, 17, 79], ["+", 0, 57, 75, 57, 15, 16, 31, 16, 17, 60], ["-", 0, 210, 8, 196, 0, 57, 75, 57, 0, 25], ["-", 0, 57, 75, 57, 64, 1, 0, 11, 31, 22], ["-", 75, 57, 64, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 75, 57, 64, 1, 0, 11, 12, 215], ["-", 8, 196, 0, 57, 75, 57, 64, 1, 0, 35], ["-",... | 8 | 595 |
using System;
namespace ALDS1_6_C {
public static class Sort {
public delegate void SwapperAction<T>(ref T a, ref T b);
public static void QuickSort<T>(this T[] a, SwapperAction<T> swapper)
where T : IComparable { QuickSort(a, 0, a.Length - 1, swapper); }
private static void QuickSort<T>(T[] a, int s, int... | using System;
namespace ALDS1_6_C {
public static class Sort {
public delegate void SwapperAction<T>(ref T a, ref T b);
public static void QuickSort<T>(this T[] a, SwapperAction<T> swapper)
where T : IComparable { QuickSort(a, 0, a.Length - 1, swapper); }
private static void QuickSort<T>(T[] a, int s, int... | [["-", 8, 201, 0, 235, 8, 201, 0, 235, 0, 269], ["+", 8, 201, 0, 235, 8, 201, 0, 270, 0, 149], ["-", 0, 28, 0, 214, 205, 23, 0, 271, 31, 22], ["-", 0, 28, 0, 214, 205, 23, 0, 271, 17, 272], ["+", 0, 28, 0, 214, 205, 23, 0, 74, 0, 24], ["+", 0, 28, 0, 214, 205, 23, 0, 74, 51, 22], ["+", 3, 4, 0, 28, 0, 214, 205, 23, 0, ... | 8 | 595 |
using System;
using System.Linq;
namespace C {
class Depth {
public int dep(Node[] node, int id) {
if (node[id].parent == -1) {
return 0;
}
return dep(node, node[id].parent) + 1;
}
}
class Node {
public int id;
public int k;
public int[] child = new int[0];
public int parent;
public i... | using System;
using System.Linq;
namespace C {
class Depth {
public int dep(Node[] node, int id) {
if (node[id].parent == -1) {
return 0;
}
return dep(node, node[id].parent) + 1;
}
}
class Node {
public int id;
public int k;
public int[] child = new int[0];
public int parent;
public i... | [["+", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 5, 0, 62], ["+", 8, 196, 0, 1, 0, 11, 12, 5, 0, 222], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["-", 31, 214, 205, 204, 206, 207, 0, 28, 0, 22], ["+", 206, 207, 0, 28, 0, 213, 63, 214, 205, 199], ["... | 8 | 677 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ALDS1_7_A {
class Node {
public int Parent { get; set; }
public int Depth { get; set; }
public List<int> Children { get; set; }
public Node() {
Parent = -1;
Children = new List<int>();
}
}
class Program ... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ALDS1_7_A {
class Node {
public int Parent { get; set; }
public int Depth { get; set; }
public List<int> Children { get; set; }
public Node() {
Parent = -1;
Children = new List<int>();
}
}
class Program ... | [["-", 0, 57, 15, 16, 31, 214, 205, 214, 141, 22], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 0, 131], ["-", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["+", 8, 196, 0, 57, 15, 16, 31, 214, 141, 22], ["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 57, 15, 16, 12, ... | 8 | 675 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace COJ1_7 {
struct Node {
public int parent;
public int sibling;
public int degree;
public int depth;
public int height;
public string type;
public int left;
public int right;
}
class Program {
static void M... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace COJ1_7 {
struct Node {
public int parent;
public int sibling;
public int degree;
public int depth;
public int height;
public string type;
public int left;
public int right;
}
class Program {
static void M... | [["+", 205, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 205, 213, 3, 4, 0, 28, 0, 5, 0, 62], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 25], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 0, 131], ["+", 205, 213, 63, 214, 205, 213, 63, 214, 141, 22], ["+", 205, 213, 63, 214, 205, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 214, ... | 8 | 662 |
using System;
using System.Linq;
using System.Text;
namespace ALDS1_7_B_BinaryTrees {
class Program {
static void Main(string[] args) {
// input
int dataCount = int.Parse(Console.ReadLine());
BinaryTree binaryTree = new BinaryTree(dataCount);
for (int lp = 0; lp < dataCount; lp++) {
int[] inpu... | using System;
using System.Linq;
using System.Text;
namespace ALDS1_7_B_BinaryTrees {
class Program {
static void Main(string[] args) {
// input
int dataCount = int.Parse(Console.ReadLine());
BinaryTree binaryTree = new BinaryTree(dataCount);
for (int lp = 0; lp < dataCount; lp++) {
int[] inpu... | [["-", 8, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 31, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 16, 12, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 16, 17, 60], ["-", 8, 196, 0, 57, 64, 37, 0, 5, 0, 222], ["+", 8, 196, 0, 57, 64, 37, 0, 5, 0, 222], ["-", 8, 196, 0, 57, 75, 37, 0, 5, 0, 222], ["+... | 8 | 954 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace COJ1_7 {
struct Node {
public int parent;
public int left;
public int right;
}
class Program {
static void Main(string[] args) {
int cnt = int.Parse(Console.ReadLine());
Node[] nodes = new Node[cnt];
f... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace COJ1_7 {
struct Node {
public int parent;
public int left;
public int right;
}
class Program {
static void Main(string[] args) {
int root = 0;
int cnt = int.Parse(Console.ReadLine());
Node[] nodes = new... | [["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 88], ["+", 8, 201, 0, 195, 8, 196, 0, 7, 0, 2... | 8 | 510 |
using System;
using System.IO;
using System.Linq;
namespace Tree {
class Tree_Walk {
struct Node {
public int id;
public int parent;
public int left, right;
}
static void Main(string[] args) {
int size = int.Parse(Console.ReadLine());
var nodes = new Node[size];
for (int i = 0; i < size... | using System;
using System.IO;
using System.Linq;
namespace Tree {
class Tree_Walk {
struct Node {
public int id;
public int parent;
public int left, right;
}
static void Main(string[] args) {
int size = int.Parse(Console.ReadLine());
var nodes = new Node[size];
for (int i = 0; i < size... | [["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 33], ["+", 8, 196, 0, 57, 15, 16, 12, 241, 0, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 25], ["+", 64... | 8 | 514 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | [["-", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 213, 63, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+",... | 8 | 2,388 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Aoj.CGL.Lib;
namespace Aoj.CGL.Chapter1B {
class Program {
public static void Solve() {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Vector v1 = new Vecto... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Aoj.CGL.Lib;
namespace Aoj.CGL.Chapter1B {
class Program {
public static void Solve() {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
Vector v1 = new Vecto... | [["-", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["-", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 1, 0, 213, 3, 4, 0, 24], ["-", 0, 213, 3, 4, 0, 28, 0, 230, 0, 228], ["-", 0, 28, 0, 230, 39, 232, 234, 232, 234, 22], ["-", 0, 28, 0, 230, 39, 232, 234, 232, 0, ... | 8 | 1,329 |
using System;
class Program {
struct Vector {
public int x, y;
}
struct Segment {
public int x1, y1, x2, y2;
}
private static bool isOrthogonal(Vector v1, Vector v2) {
return v1.x * v2.x - v1.y * v2.y == 0;
}
private static bool isParallel(Vector v1, Vector v2) {
return v2.x * v1.y - v... | using System;
class Program {
struct Vector {
public int x, y;
}
private static bool isOrthogonal(Vector v1, Vector v2) {
return v1.x * v2.x + v1.y * v2.y == 0;
}
private static bool isParallel(Vector v1, Vector v2) {
return v2.x * v1.y - v2.y * v1.x == 0;
}
public static void Main() {
... | [["-", 0, 208, 0, 235, 8, 201, 0, 270, 0, 149], ["-", 0, 208, 0, 235, 8, 201, 0, 270, 141, 22], ["-", 0, 235, 8, 201, 0, 270, 8, 201, 0, 45], ["-", 0, 270, 8, 201, 0, 124, 0, 251, 0, 259], ["-", 0, 270, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 270, 8, 201, 0, 124, 0, 19... | 8 | 305 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Point[] points = new Point[n];
double sum = 0.0;
for (int i = 0; i < n; i++) {
string[... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
Point[] points = new Point[n];
double sum = 0.0;
for (int i = 0; i < n; i++) {
string[... | [["+", 0, 11, 12, 213, 63, 214, 205, 23, 0, 24], ["+", 205, 23, 0, 16, 31, 204, 206, 207, 0, 73], ["+", 12, 213, 63, 214, 205, 23, 0, 16, 17, 33], ["+", 63, 214, 205, 23, 0, 16, 12, 204, 205, 22], ["+", 205, 23, 0, 16, 12, 204, 206, 207, 0, 70], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 11, 12, 213, 63, ... | 8 | 809 |
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
// using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int();
var P = new Point[N];
for (int i = 0; i < N; i... | using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Diagnostics;
// using System.Numerics;
using Enu = System.Linq.Enumerable;
public class Program {
public void Solve() {
int N = Reader.Int();
var P = new Point[N];
for (int i = 0; i < N; i... | [["+", 0, 235, 8, 201, 0, 195, 0, 251, 0, 259], ["-", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 0, 227, 39, 224, 225, 226, 0, 16, 12, 203], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 121], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 24], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 31, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 60... | 8 | 1,544 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AizuOnline {
internal class Program {
private static void Main(string[] args) {
var n = Console.ReadLine().Split(' ');
var c = Console.ReadLine().Split(' ');
var J = int.Parse(n[0]);
var I = int.Parse(n[1])... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AizuOnline {
internal class Program {
private static void Main(string[] args) {
var n = Console.ReadLine().Split(' ');
var c = Console.ReadLine().Split(' ');
var J = int.Parse(n[0]);
var I = int.Parse(n[1])... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203], ["+", 8, 196, 0, 1, 0, 213, 3, 4, 0, 25], ["+", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 205, 22], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 0, 131], ["+", 8, 196, 0, 1, 0, 213, 63, 214, 141, 22], ["... | 8 | 357 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
static int n;
static int m;
static int[] cs;
static int[] minCounts;
static void Main(string[] args) {
string[] first = Console.ReadLine().Split();
n = int.Parse(first[0])... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Linq;
class Program {
static void Main(string[] args) {
string[] nm = Console.ReadLine().Split();
int n = int.Parse(nm[0]);
int m = int.Parse(nm[1]);
int[] cs =
Console.ReadLine().Split... | [["-", 0, 235, 8, 201, 0, 124, 0, 198, 39, 199], ["-", 8, 201, 0, 124, 0, 198, 0, 200, 141, 22], ["-", 0, 208, 0, 235, 8, 201, 0, 124, 0, 35], ["-", 0, 235, 8, 201, 0, 124, 0, 251, 0, 115], ["-", 8, 201, 0, 124, 0, 198, 39, 224, 39, 199], ["-", 0, 124, 0, 198, 39, 224, 225, 226, 0, 70], ["-", 0, 124, 0, 198, 39, 224, 2... | 8 | 288 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
public class Program {
public static void Main() {
TextReader reader;
string filename = "";
filename = @"/Volumes/ExtremeDrive/CSharpProj/AOJ/DPL/DPL_1/DPL_1B.txt";
if (filename.Count() == 0)
reader = Console.In... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
public class Program {
public static void Main() {
TextReader reader;
string filename = "";
if (filename.Count() == 0)
reader = Console.In;
else
reader = new StreamReader(filename);
/*
0-1????????... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 258], ["-", 8, 201, 0, 195, 8, 196, 0, 1, 0, 35]] | 8 | 392 |
using System;
using System.Collections.Generic;
using System.Linq;
static class LIS {
struct D : IComparable<D> {
public int value;
public int index;
public int CompareTo(D o) { return value.CompareTo(o.value); }
}
public static List<int> Do(List<int> xs) {
var lis = new List<D>();
lis.Add(n... | using System;
using System.Collections.Generic;
using System.Linq;
static class LIS {
struct D : IComparable<D> {
public int value;
public int index;
public int CompareTo(D o) { return value.CompareTo(o.value); }
}
public static List<int> Do(List<int> xs) {
var lis = new List<D>();
lis.Add(n... | [["+", 8, 196, 0, 1, 0, 11, 31, 204, 205, 22], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 70], ["+", 0, 11, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 1, 0, 11, 31, 204, 206, 207, 0, 73], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 241, 0, 33], ["+", 8, 196, 0, 1, 0, 11, 12, 241, 0, 203], [... | 8 | 434 |
using System;
namespace DPL_1D_1 {
public class Program {
public static void Main(string[] args) {
string input;
var lis = new int[100000];
lis[0] = int.MaxValue;
var length = 1;
while ((input = Console.ReadLine()) != null) {
var a = int.Parse(input);
if (lis[length - 1] < a) {
... | using System;
using System.Linq;
namespace DPL_1D_1 {
public class Program {
public static void Main(string[] args) {
var input = Console.ReadLine();
var lis = new int[100000];
lis[0] = int.MaxValue;
var length = 1;
while ((input = Console.ReadLine()) != null) {
var a = int.Parse(input);
... | [["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 233], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 234, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 0, 131], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 36, 36, 0, 208, 0, 231, 0, 35], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198,... | 8 | 179 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int H = input[0];
int W = input[1];
int[,] dp = new int[H,... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int H = input[0];
int W = input[1];
int[,] dp = new int[H,... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 0, 7, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]... | 8 | 303 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int H = input[0];
int W = input[1];
int[,] dp = new int[H,... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args) {
int[] input = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int H = input[0];
int W = input[1];
int[,] dp = new int[H,... | [["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["+", 8, 196, 0, 7, 8, 196, 0, 7, 0, 25], ["+", 0, 7, 8, 196, 0, 7, 8, 196, 0, 45], ... | 8 | 298 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using SB = System.Text.StringBuilder;
// using System.Text.RegularExpressions;
// using System.Globalization;
// using System.Diagnostics;
using static System.Console;
using System.Numerics;
using static System.Math;
using pair = Pair<i... | [["+", 0, 7, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 197, 0, 35], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["+... | 8 | 986 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
public class Program {
public static int[] array;
public static int[] rank;
public static void Main() {
var filename = "";
var reader = new StreamReader(filename);
var nq = reader.ReadLine().Split().Select(int.Parse).... | using System;
using System.Linq;
using System.Collections.Generic;
using System.IO;
public class Program {
public static int[] array;
public static int[] rank;
public static void Main() {
var reader = Console.In;
var nq = reader.ReadLine().Split().Select(int.Parse).ToArray();
int N = nq[0], Q = nq[1]... | [["-", 8, 196, 0, 197, 0, 198, 0, 200, 141, 22], ["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 32], ["-", 0, 198, 0, 200, 0, 212, 0, 5, 0, 62], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 0, 228], ["-", 0, 198, 0, 200, 0, 212, 0, 230, 39... | 8 | 389 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.