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 |
|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | [["-", 0, 28, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 28, 0, 16, 31, 16, 12, 16, 31, 22]] | 8 | 1,715 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder {
partial class Program {
static long mod = 1000000007;
static void Swap<T>(ref T a, ref T b) {
T temp = a;
a = b;
b = temp;
}
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 12, 203], ["-", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203], ["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 203]] | 8 | 1,832 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using System.Diagnostics;
using System.Numerics;
using static System.Console;
using static System.Convert;
using static System.Math;
using static Template;
using Pi = Pair<int, i... | [["+", 0, 57, 15, 16, 31, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 22], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 17, 79], ["+", 64, 196, 0, 57, 15, 16, 31, 16, 12, 22], ["+", 8, 57, 64, 196, 0, 57, 15, 16, 17, 98]] | 8 | 1,710 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace A {
class StartingPoint {
static void Main(string[] args) {
if (args?.Any() == true) {
var assembly = Assembly.GetEntryAssembly();
var resourceName = "AtCoderCShar... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace A {
class StartingPoint {
static void Main(string[] args) {
if (args?.Any() == true) {
var assembly = Assembly.GetEntryAssembly();
var resourceName = "AtCoderCShar... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 908 |
using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC160A {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
if (S[2] == S[3] || S[4] == S[5])
Console.WriteLine("Yes");
... | using System;
using System.Collections.Generic;
using static Assistant.Input;
using static Assistant.Debug;
using System.Linq;
using Assistant;
namespace ABC160A {
class Program {
static void Main(string[] args) {
var S = Console.ReadLine();
if (S[2] == S[3] && S[4] == S[5])
Console.WriteLine("Yes");
... | [["-", 0, 195, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 195, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 709 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
if (input.Length != 6 || input[2] != input[3] || input[4] != input[5])
Console.WriteLine("NO");
else
Console.WriteLine("Yes");
}
}
}
| using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
if (input.Length != 6 || input[2] != input[3] || input[4] != input[5])
Console.WriteLine("No");
else
Console.WriteLine("Yes");
}
}
}
| [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 78 |
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
if (input.Length != 6) {
Console.WriteLine("No");
return;
}
if (input[2] != input[3]) {
Console.WriteLine("No");
return;
}
if (input[4] != input[... | using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
string input = Console.ReadLine();
if (input.Length != 6) {
Console.WriteLine("No");
return;
}
if (input[2] != input[3]) {
Console.WriteLine("No");
return;
}
if (input[4] != input[... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 111 |
using System;
using CompLib.Util;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
long s = 0;
for (int i = 0; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
s += i;
}
}
Console.WriteLine(s);
}
public static void Main(string[]... | using System;
using CompLib.Util;
public class Program {
public void Solve() {
var sc = new Scanner();
int n = sc.NextInt();
long s = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
s += i;
}
}
Console.WriteLine(s);
}
public static void Main(string[... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 413 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.AtCoder_Begginer_Contest_162 {
class C {
static void Main(string[] args) {
string input1 = Console.ReadLine();
long n = long.Parse(input1);
long sum = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.AtCoder_Begginer_Contest_162 {
class C {
static void Main(string[] args) {
string input1 = Console.ReadLine();
long n = long.Parse(input1);
long sum = 0;
... | [["-", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22], ["+", 0, 11, 12, 213, 3, 4, 0, 28, 0, 22]] | 8 | 175 |
using System;
using System.Linq;
class D {
static void Main() {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine()
.Select(x => x == 'R' ? 0
: x == 'G' ? 1
: 2)
.ToArray();
var dp = new ... | using System;
using System.Linq;
class D {
static void Main() {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine()
.Select(x => x == 'R' ? 0
: x == 'G' ? 1
: 2)
.ToArray();
var dp = new ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 247 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var n = rint();
var s = rstr();
int ct = 0;
var isrgb = new i... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var n = rint();
var s = rstr();
long ct = 0;
var isrgb = new ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 1,054 |
using System;
//(条件1)RGB全部異なる
//(条件2)j-i!=k-j
//まず(1)から考えると、#R*#G*#B(#は、~の数)
//その中から(2)を抜く。N<=4000でi,jがわかるとkも決まるので計算量はO(n^2)
//(2)変形するとk=2j-i
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] A = new int[n];
int[] C = new int[3]; // 0=#B,... | using System;
//(条件1)RGB全部異なる
//(条件2)j-i!=k-j
//まず(1)から考えると、#R*#G*#B(#は、~の数)
//その中から(2)を抜く。N<=4000でi,jがわかるとkも決まるので計算量はO(n^2)
//(2)変形するとk=2j-i
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] A = new int[n];
int[] C = new int[3]; // 0=#B,... | [["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25]] | 8 | 262 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp1 {
public class Class {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var S = Console.ReadLine();
var R = S.Where(_ => _ == 'R').Count();
var G = S.Where(_ => _ == 'G').Count();
va... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ConsoleApp1 {
public class Class {
static void Main(string[] args) {
var N = long.Parse(Console.ReadLine());
var S = Console.ReadLine();
long R = S.Where(_ => _ == 'R').Count();
long G = S.Where(_ => _ == 'G').Count();
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 227 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var N = LnInt();
var S = LnStr();
var r = S.Count(x => x == 'R');
var g = S.Count(x => x == 'G');
var v = S.Count(x => x... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var N = LnInt();
var S = LnStr();
long r = S.Count(x => x == 'R');
long g = S.Count(x => x == 'G');
long v = S.Count(x =... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 399 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
var n = rint();
var a = rstr();
var ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
public class Solve {
static public int mod = 1000000007;
public static void Main() {
// 方針
//
var n = rint();
var a = rstr();
long... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 1,372 |
using System;
using System.Collections.Generic;
public class ABC162D {
private static void Main(string[] args) {
var n = ReadInt();
var s = ReadStr();
var dict =
new Dictionary<char, int>() { { 'R', 0 }, { 'G', 0 }, { 'B', 0 } };
for (var i = 0; i < s.Length; i++)
dict[s[i]]++;
v... | using System;
using System.Collections.Generic;
public class ABC162D {
private static void Main(string[] args) {
var n = ReadInt();
var s = ReadStr();
var dict =
new Dictionary<char, long>() { { 'R', 0 }, { 'G', 0 }, { 'B', 0 } };
for (var i = 0; i < n; i++)
dict[s[i]]++;
var ans... | [["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 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, 195, 8, 196, 0, 7, 15, 16, 12, 22], ["-", 0, 195, 8, 196, 0, 7, 10, 19... | 8 | 267 |
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace abc162 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
if (File.Exists("in... | using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
namespace abc162 {
class Program {
static void Main(string[] args) {
Console.SetOut(
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false });
if (File.Exists("in... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 1,456 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC162D {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var input = Console.ReadLine().ToCharArray();
var acumR = new int[n];
var acumG = new int[n];
var acumB = new int[n];
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace ABC162D {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var input = Console.ReadLine().ToCharArray();
var acumR = new int[n];
var acumG = new int[n];
var acumB = new int[n];
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 659 |
/**
* code generated by RHelper
* More info: https://github.com/mkc1370/RHelper
* @author
*/
using Task.DRGBTriplets;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace Task.DRGBTriplets {
public class DRGBTriplets {
... | /**
* code generated by RHelper
* More info: https://github.com/mkc1370/RHelper
* @author
*/
using Task.DRGBTriplets;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
namespace Task.DRGBTriplets {
public class DRGBTriplets {
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 1,447 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
public static void Main() {
var length = IO.ReadInt();
var chars = IO.ReadCharArray();
var lengths = new[] { chars.Count(iChar => iChar == 'R'),
chars.Count(iChar => iChar == 'G'),
cha... | using System;
using System.Linq;
namespace AtCoder {
class Program {
public static void Main() {
var length = IO.ReadInt();
var chars = IO.ReadCharArray();
var lengths = new long[] { chars.Count(iChar => iChar == 'R'),
chars.Count(iChar => iChar == 'G'),
... | [["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 491 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
long ans = 0;
var tmpS = s.Skip(1).Reverse().Skip(1).ToArray();
int r = tmpS.Count(t => t == 'R');
int g = tmpS.Count(t => t == 'G');
int ... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var s = Console.ReadLine();
long ans = 0;
var tmpS = s.Skip(1).Reverse().Skip(1).ToArray();
int r = tmpS.Count(t => t == 'R');
int g = tmpS.Count(t => t == 'G');
int ... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 681 |
using System;
using static System.Console;
using System.Collections.Generic;
namespace Main {
class Program {
static void Main(string[] args) {
int N = int.Parse(ReadLine());
char[] S = ReadLine().ToCharArray();
var rgb = new Dictionary<char, int> { { 'R', 0 }, { 'G', 0 }, { 'B', 0 } };
int tmp = 0;
... | using System;
using static System.Console;
using System.Collections.Generic;
namespace Main {
class Program {
static void Main(string[] args) {
long N = long.Parse(ReadLine());
char[] S = ReadLine().ToCharArray();
var rgb = new Dictionary<char, long> { { 'R', 0 }, { 'G', 0 }, { 'B', 0 } };
int tmp = ... | [["-", 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, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["-", 0, 195, 8, 196, 0... | 8 | 229 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static int N;
static string S;
static void INPUT() {
N = NextInt();
S = NextString();
}
static void OUT() {
v... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
using static Util;
class Program {
static int N;
static string S;
static void INPUT() {
N = NextInt();
S = NextString();
}
static void OUT() {
l... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203]] | 8 | 575 |
using System;
namespace D {
class Program {
static void Main(string[] args) {
var rgb = new int[3];
Int64 count = 0;
var len = int.Parse(Console.ReadLine());
var chars = Console.ReadLine().ToCharArray();
/* 全探索アルゴリズム(時間が足りない)
for(int i = 0; i < len - 2; i++)
{
for(int j = i + 1;j<... | using System;
namespace D {
class Program {
static void Main(string[] args) {
var rgb = new long[3];
var len = int.Parse(Console.ReadLine());
var chars = Console.ReadLine().ToCharArray();
/* 全探索アルゴリズム(時間が足りない)
for(int i = 0; i < len - 2; i++)
{
for(int j = i + 1;j<len - 1; j++)
... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["-", 8, 201, 0, 195, 8, 196, 0, 197, 0, 35], ["-", 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, 212, 0, 32], ["-", 0, 197, 0, 198, 0, 200, 0, 2... | 8 | 227 |
/*******************************************************************************
* Author: Nirushuu
* Date: 2020-04-13
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.IO;
using Syst... | /*******************************************************************************
* Author: Nirushuu
* Date: 2020-04-13
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.IO;
using Syst... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 1,623 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S =... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
var S =... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 257 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Num = int.Parse(Console.ReadLine());
var Text = Console.ReadLine().ToArray();
var Patern = new int[Num, 3];
var Result = 0;
for (int i = Num - 1; - 1 < i; i--) {
... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var Num = int.Parse(Console.ReadLine());
var Text = Console.ReadLine().ToArray();
var Patern = new int[Num, 3];
var Result = 0L;
for (int i = Num - 1; - 1 < i; i--) {
... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 377 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace MyProject {
class Program {
static void Main(string[] args) {
#if Local
var sw = new Stopwatch();
sw.Start();
Console.SetIn(new StreamReader("input.in"));
#endif
var solver = new S... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 312 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace D {
public class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
Solve();
Cons... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 205, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 287 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc162d {
class Program {
static void Main(string[] args) {
//==========================================================================================================================
// 1) input
int n = int.Parse(Console.ReadL... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc162d {
class Program {
static void Main(string[] args) {
//==========================================================================================================================
// 1) input
long n = int.Parse(Console.Read... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217]] | 8 | 295 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace a4 {
class Program {
static void Main(string[] args) {
var N = Convert.ToInt32(Console.ReadLine());
var S = Console.ReadLine();
var R = 0;
var G = 0;
var B = 0;
for (... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace a4 {
class Program {
static void Main(string[] args) {
var N = Convert.ToInt32(Console.ReadLine());
var S = Console.ReadLine();
var R = 0L;
var G = 0L;
var B = 0L;
fo... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 254 |
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Math;
namespace CSharpSpiral {
class Program {
static void Main(string[] args) {
var sw =... | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Math;
namespace CSharpSpiral {
class Program {
static void Main(string[] args) {
var sw =... | [["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 11, 12, 16, 31, 16, 31, 74, 0, 25]] | 8 | 853 |
using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | using System;
using System.Diagnostics;
using System.IO;
using System.Text;
using System.Linq;
using System.Collections.Generic;
class Program {
const string Yes = "Yes";
const string No = "No";
const long Mod = 1000000007;
static void Main(string[] args) {
#if DEBUG
MyDebugger.Test(process, "../TextFile1.... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 323 |
using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int r = s.Count(x => x == 'R');
int g = s.Count(x => x == 'G');
int b = s.Count(x => x == 'B');
int count = 0;
for (int i = 0; i ... | using System;
using System.Linq;
namespace AtCoder {
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int r = s.Count(x => x == 'R');
int g = s.Count(x => x == 'G');
int b = s.Count(x => x == 'B');
int count = 0;
for (int i = 0; i ... | [["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 16, 31, 16, 31, 16, 31, 74, 0, 25]] | 8 | 290 |
using System;
using System.Collections.Generic;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] S = new int[N];
var D = new Dictionary<char, int>() { { 'R', 0 }, { 'G', 1 }, { 'B', 2 } };
for (int i = 0; i < N; ++i)
S[i] = D... | using System;
using System.Collections.Generic;
class Program {
static void Main() {
int N = int.Parse(Console.ReadLine());
string s = Console.ReadLine();
int[] S = new int[N];
var D = new Dictionary<char, int>() { { 'R', 0 }, { 'G', 1 }, { 'B', 2 } };
for (int i = 0; i < N; ++i)
S[i] = D... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 317 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC162.D(); }
class ABC162 {
public static void A() {
var N = Read.Int();
Console.WriteLine(
N % 10 == 7 || N / 100 == 7 || (N / 10) % 10 == 7 ? "Yes" ... | using System;
using System.Linq;
using System.Collections.Generic;
namespace Contest {
class Program {
static void Main(string[] args) { ABC162.D(); }
class ABC162 {
public static void A() {
var N = Read.Int();
Console.WriteLine(
N % 10 == 7 || N / 100 == 7 || (N / 10) % 10 == 7 ? "Yes" ... | [["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 212, 0, 16, 31, 16, 31, 74, 0, 25]] | 8 | 2,556 |
using System;
using System.Linq;
class F {
static void Main() {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (n % 2 == 0) {
var dp = new long[n + 5, 2];
for (int i = 0; i <= n; i++)
for (int j = 0; j < 2; j++)
dp[... | using System;
using System.Linq;
class F {
static void Main() {
var n = int.Parse(Console.ReadLine());
var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
if (n % 2 == 0) {
var dp = new long[n + 5, 2];
for (int i = 0; i <= n; i++)
for (int j = 0; j < 2; j++)
dp[... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 639 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class F {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using static System.Console;
using static System.Math;
using static MyIO;
using static MyUtil;
public class F {
public static void Main() => (new Solver()).Solve();
}
public class Solver {
p... | [["+", 0, 204, 206, 207, 0, 28, 0, 16, 17, 33], ["+", 0, 204, 206, 207, 0, 28, 0, 16, 12, 203]] | 8 | 770 |
/*******************************************************************************
* Author: Nirushuu
* Date: 2020-04-16
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.IO;
using Syst... | /*******************************************************************************
* Author: Nirushuu
* Date: 2020-04-16
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.IO;
using Syst... | [["-", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199], ["+", 0, 200, 0, 212, 0, 227, 39, 224, 39, 199]] | 8 | 1,573 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace contest_Csharp {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
List<long> sumeven = new List<long>(), sumodd... | using System;
using System.Collections.Generic;
using System.Linq;
namespace contest_Csharp {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
var A = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
List<long> sumeven = new List<long>(), sumodd... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 567 |
using System;
using System.Collections.Generic;
namespace abc162 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var sStrList = Console.ReadLine().Split(' ');
var sList = new List<long>();
foreach (var sStr in sStrList) {
sList.Add(long.Parse(sStr));
... | using System;
using System.Collections.Generic;
namespace abc162 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var sStrList = Console.ReadLine().Split(' ');
var sList = new List<long>();
foreach (var sStr in sStrList) {
sList.Add(long.Parse(sStr));
... | [["-", 0, 198, 0, 200, 0, 212, 0, 214, 205, 199], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 0, 131], ["-", 0, 198, 0, 200, 0, 212, 0, 214, 141, 22], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 824 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.Compi... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplAttribute = System.Runtime.Compi... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203]] | 8 | 1,064 |
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Xml.Schema;
namespace AtCoder {
public static class Ex {
public static List<string> FastSort... | using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Xml.Schema;
namespace AtCoder {
public static class Ex {
public static List<string> FastSort... | [["-", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 28, 0, 204, 206, 207, 0, 28, 0, 203]] | 8 | 2,094 |
using System;
namespace q1 {
class q2 {
static void Main() {
string[] N = Console.ReadLine().Split();
Console.WriteLine(N[1] + " " + N[0] + " " + N[2]);
}
}
} | using System;
namespace q1 {
class q2 {
static void Main() {
string[] N = Console.ReadLine().Split();
Console.WriteLine(N[2] + " " + N[0] + " " + N[1]);
}
}
} | [["-", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["+", 31, 16, 31, 204, 206, 207, 0, 28, 0, 203], ["-", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203], ["+", 0, 16, 12, 204, 206, 207, 0, 28, 0, 203]] | 8 | 61 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
namespace ClassLibrary1 {
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
}
cla... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
using System.Linq;
namespace ClassLibrary1 {
public class ListNode {
public int val;
public ListNode next;
public ListNode(int x) { val = x; }
}
cla... | [["-", 8, 196, 0, 1, 0, 11, 0, 202, 0, 32], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 8, 196, 0, 1, 0, 11, 0, 202, 0, 132]] | 8 | 1,886 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class A_162_Lucky7 {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder.Abc {
class A_162_Lucky7 {
public static void Main(string[] args) {
var sw = new System.IO.StreamWriter(
Console.OpenStandardOutput()) { AutoFlush = false };
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 178 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
if (s.Contains("7"))
Console.WriteLine("YES");
else
Console.WriteLine("NO"... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var s = Console.ReadLine();
if (s.Contains("7"))
Console.WriteLine("Yes");
else
Console.WriteLine("No"... | [["-", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222], ["+", 0, 213, 3, 4, 0, 28, 0, 5, 0, 222]] | 8 | 85 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Test {
public static void Main() {
var num = int.Parse(Console.ReadLine());
Console.Write(num);
}
static string LuckyNumber(int n) {
while (n > 0) {
var digit = n % 10;
if (digit == 7)
return "Yes";
... | using System;
using System.Collections.Generic;
using System.Linq;
public class Test {
public static void Main() {
var num = int.Parse(Console.ReadLine());
Console.Write(LuckyNumber(num));
}
static string LuckyNumber(int n) {
while (n > 0) {
var digit = n % 10;
if (digit == 7)
r... | [["+", 0, 213, 3, 4, 0, 28, 0, 213, 63, 22], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 24], ["+", 3, 4, 0, 28, 0, 213, 3, 4, 0, 25]] | 8 | 95 |
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public static void Main(string[] args) { new A().test(); }
}
public class A {
public void test() {
// スペース区切りの整数の入力
var input = CommonRead.ReadStr();
// 文字列チェックする
if (input.IndexOf("7") > ... | using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
public class Program {
public static void Main(string[] args) { new A().test(); }
}
public class A {
public void test() {
// スペース区切りの整数の入力
var input = CommonRead.ReadStr();
// 文字列チェックする
if (input.IndexOf("7") > ... | [["-", 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, 241, 0, 203]] | 8 | 491 |
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var n = ReadLine();
var f = false;
for (int i = 0; i < n.Length; i++) {
if (n[i].Equals('7'))
f = true;
... | using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var n = ReadLine();
var f = false;
for (int i = 0; i < n.Length; i++) {
if (n[i].Equals('7')) {
f = true;
... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["-", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["-", 8, 196, 0, 57, 75, 1, 0, 11, 31, 22], ["-", 0, 57, 75, 1, 0, 11, 0, 202, 0, 32], ["-", 0, 57, 75, 1, 0, 11, 12, 211, 0, 147], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 8 | 314 |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var n = Read();
for (int i = 0; i < n.Length; i++) {
if (n[i] == '7') {
WriteRea... | using System;
using System.Collections.Generic;
using System.Windows;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
public class Program {
static void Main(string[] args) {
var n = Read();
for (int i = 0; i < n.Length; i++) {
if (n[i] == '7') {
WriteRea... | [["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 37, 0, 38]] | 8 | 312 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var n = rint();
long ans = n * (n + 1) / 2;
int n3 = n / 3, n5 = ... | using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using static System.Console;
using static System.Math;
class program {
static public int mod = 1000000007;
static void Main() {
var n = rlong();
long ans = n * (n + 1) / 2;
long n3 = n / 3, n5 ... | [["-", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["+", 0, 198, 0, 200, 0, 212, 0, 213, 63, 22], ["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 802 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder {
public class Program {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long answer = 0;
for (int i = 0; i < N; i++) {
if (i % 15 =... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace atcoder {
public class Program {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long answer = 0;
for (int i = 0; i <= N; i++) {
if (i % 15 ... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 124 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC162B {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long count = 0;
for (long i = 0; i < N; i++) {
if (i % 3 != 0 & i % 5 !=... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC162B {
class Program {
static void Main(string[] args) {
long N = long.Parse(Console.ReadLine());
long count = 0;
for (long i = 1; i < N + 1; i++) {
if (i % 3 != 0 & i % ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 108 |
using System;
namespace abc162B {
class MainClass {
public static void Main(string[] args) {
float A = float.Parse(Console.ReadLine());
float ans = 0;
for (float i = 1; i <= A; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans = ans + i;
}
Console.WriteLine(ans);
}
}
}
| using System;
namespace abc162B {
class MainClass {
public static void Main(string[] args) {
long A = long.Parse(Console.ReadLine());
long ans = 0;
for (long i = 1; i <= A; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans = ans + i;
}
Console.WriteLine(ans);
}
}
}
| [["-", 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, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 85 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int res = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0)
res += i;
}
Console.WriteLine(res);
}
} | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long res = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0)
res += i;
}
Console.WriteLine(res);
}
} | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 83 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long answer = 0;
for (int i = 0; i < N; i++) {
if (i % 3 != 0... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_20190707_1 {
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long answer = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 108 |
using System;
namespace Sample {
class Sample {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
int output = 0;
for (int i = 1; i <= N; i++) {
if ((i % 3 != 0) && (i % 5 != 0)) {
output = output + i;
}
}
Console.WriteLine(output);
}
}
} | using System;
namespace Sample {
class Sample {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long output = 0;
for (int i = 1; i <= N; i++) {
if ((i % 3 != 0) && (i % 5 != 0)) {
output = output + i;
}
}
Console.WriteLine(output);
}
}
}
| [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 90 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var n = ReadLineLongInt();
var re = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0)
cont... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder {
class Program {
static void Main(string[] args) {
var n = ReadLineLongInt();
long re = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0)
con... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 625 |
using System;
class FizzBuzzSum {
static void Main(string[] args) {
var input = ulong.Parse(Console.ReadLine());
ulong sum = 0;
for (ulong i = 0; i < input; i++) {
if (!(i % 3 == 0 || i % 5 == 0)) {
sum += i;
}
}
Console.WriteLine(sum);
}
} | using System;
class FizzBuzzSum {
static void Main(string[] args) {
var input = ulong.Parse(Console.ReadLine());
ulong sum = 0;
for (ulong i = 1; i <= input; i++) {
if (!(i % 3 == 0 || i % 5 == 0)) {
sum += i;
}
}
Console.WriteLine(sum);
}
} | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 83 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 競プロCS {
class ABC162B {
static void Main() {
int n = int.Parse(Console.ReadLine());
long total = 0;
for (int i = 1; i < n; i++) {
if (!((i % 3 == 0) || (i % 5 == 0))) {
total += i;
}
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 競プロCS {
class ABC162B {
static void Main() {
int n = int.Parse(Console.ReadLine());
long total = 0;
for (int i = 1; i < n + 1; i++) {
if (!((i % 3 == 0) || (i % 5 == 0))) {
total += i;
}
... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 105 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = Convert.ToInt32(Console.ReadLine());
var sum = 0;
for (int i = 0; i <= input; i++) {
if (i % 15 != 0 && i % 5 != 0 && i % 3 != 0) {
sum += i;
}
}
Console.WriteLine(sum);
Conso... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
var input = Convert.ToUInt64(Console.ReadLine());
UInt64 sum = 0;
for (UInt64 i = 0; i <= input; i++) {
if (i % 15 != 0 && i % 5 != 0 && i % 3 != 0) {
sum += i;
}
}
Console.WriteLine(sum);
... | [["-", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["+", 0, 200, 0, 212, 0, 213, 63, 214, 141, 22], ["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 22], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 22]] | 8 | 96 |
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var N = LnInt();
var n = 1;
var result = 0;
for (int i = 0; i < N; i++) {
if (n % 5 == 0 && n % 3 == 0) {
} else... | using System;
using System.Collections.Generic;
using System.Numerics;
using System.Linq;
using static System.Math;
class MainClass {
public static void Main(string[] args) {
var N = LnInt();
var n = 1L;
var result = 0L;
for (int i = 0; i < N; i++) {
if (n % 5L == 0 && n % 3L == 0) {
} ... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 12, 203], ["-", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["+", 0, 57, 15, 16, 12, 16, 31, 16, 12, 203], ["-", 0, 57, 75, 57, 15, 16, 31, 16, ... | 8 | 309 |
using System;
namespace Sample {
class Program {
static void Main(string[] args) {
// N
int N = int.Parse(Console.ReadLine());
int i = 1;
int ans = 0;
while (i < N) {
if (i % 3 == 0 && i % 5 == 0) {
// FizzBuzz
i++;
continue;
}
if (i % 3 == 0) {
... | using System;
namespace Sample {
class Program {
static void Main(string[] args) {
// N
int N = int.Parse(Console.ReadLine());
int i = 1;
long ans = 0;
while (i < N + 1) {
if (i % 3 == 0 && i % 5 == 0) {
// FizzBuzz
i++;
continue;
}
if (i % 3 == 0) {
... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 52, 15, 16, 12, 16, 12, 203]] | 8 | 123 |
using System;
class Program {
static void Main() {
int n = int.Parse(Console.ReadLine());
int result = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
result += i;
}
Console.WriteLine(result.ToString());
}
} | using System;
class Program {
static void Main() {
double n = double.Parse(Console.ReadLine());
double result = 0;
for (double i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
result += i;
}
Console.WriteLine(result.ToString());
}
} | [["-", 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, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 82 |
using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var solver = new Solver();
solver.Calc();
}
}
public class Solver {
public void Calc() {
var N = int.Parse(Console.ReadLine());
var sum = 0;
foreach (var i in Enumerable.Range(1, N)) {
... | using System;
using System.Linq;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
var solver = new Solver();
solver.Calc();
}
}
public class Solver {
public void Calc() {
var N = int.Parse(Console.ReadLine());
long sum = 0;
foreach (var i in Enumerable.Range(1, N)) {... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 115 |
using System;
namespace B {
class Program {
// 初項a, 公差d, 項数nの等差数列の和
public static long sumN(int a, int d, int n) {
return n * (2 * a + (n - 1) * d) / 2;
}
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long ans = sumN(1, 1, N) - sumN(3, 3, N / 3) - sumN(5, 5, N / 5) +
... | using System;
namespace B {
class Program {
// 初項a, 公差d, 項数nの等差数列の和
public static long sumN(int a, int d, int n) {
return (long)n * (2 * a + (n - 1) * d) / 2;
}
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long ans = sumN(1, 1, N) - sumN(3, 3, N / 3) - sumN(5, 5, N / ... | [["+", 0, 37, 0, 16, 31, 16, 31, 74, 0, 24], ["+", 0, 37, 0, 16, 31, 16, 31, 74, 39, 199], ["+", 0, 37, 0, 16, 31, 16, 31, 74, 0, 25]] | 8 | 124 |
using System;
namespace B {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
int N = int.Parse(line);
int sum = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
Console.WriteLine(sum);
}
}
}
| using System;
namespace B {
class Program {
static void Main(string[] args) {
string line = Console.ReadLine();
long N = long.Parse(line);
long sum = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
Console.WriteLine(sum);
}
}
}
| [["-", 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 | 89 |
using System;
class Program {
static void Main() {
var N = long.Parse(Console.ReadLine());
int S = 0;
for (int i = 0; i <= N; i++)
S += i;
for (int i = 1; i <= N / 3; i++)
S -= i * 3;
for (int i = 1; i <= N / 5; i++)
S -= i * 5;
for (int i = 0; i <= N / 15; i++)
S += i ... | using System;
class Program {
static void Main() {
var N = long.Parse(Console.ReadLine());
long S = 0;
for (long i = 0; i <= N; i++)
S += i;
for (int i = 1; i <= N / 3; i++)
S -= i * 3;
for (int i = 1; i <= N / 5; i++)
S -= i * 5;
for (int i = 0; i <= N / 15; i++)
S += ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 124 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
public static void Main() {
int input = int.Parse(Console.ReadLine());
long ans = 0;
for (int i = 0; i < input; i++) {
if (i % 3 != 0 && i % 5 != 0) {
ans += i;
}
}
Console.Wri... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program {
public static void Main() {
int input = int.Parse(Console.ReadLine());
long ans = 0;
for (int i = 0; i <= input; i++) {
if (i % 3 != 0 && i % 5 != 0) {
ans += i;
}
}
Console.Wr... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 94 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q2 {
class Program {
static void Main(string[] args) {
var N = Convert.ToInt32(Console.ReadLine());
long r = 0;
for (var i = 1; i < N; i++) {
if (i % 5 != 0 && i % 3 != 0)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace q2 {
class Program {
static void Main(string[] args) {
var N = Convert.ToInt32(Console.ReadLine());
long r = 0;
for (var i = 1; i <= N; i++) {
if (i % 5 != 0 && i % 3 != 0)... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 106 |
using System;
namespace LevelB {
class Program {
static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
long buf = 0;
for (int i = 0; i < x; i++) {
if (!Program.Judge(i)) {
buf += i;
}
}
Console.WriteLine(buf.ToString());
}
private static bool Judge(int ... | using System;
namespace LevelB {
class Program {
static void Main(string[] args) {
var x = int.Parse(Console.ReadLine());
long buf = 0;
for (int i = 0; i < x + 1; i++) {
if (!Program.Judge(i)) {
buf += i;
}
}
Console.WriteLine(buf.ToString());
}
private static bool Judge(... | [["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 115 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
// using static Util;
class Program {
static int S;
static void INPUT() { S = NextInt(); }
static void OUT() {
var a = 0L;
for (var n = 0; n < S; n++) {... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using static Input;
// using static Util;
class Program {
static int S;
static void INPUT() { S = NextInt(); }
static void OUT() {
var a = 0L;
for (var n = 1; n <= S; n++) ... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 455 |
using System;
namespace Test {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 1; i < n; i++) {
if (i % 3 == 0 && i % 5 == 0)
continue;
else if (i % 3 == 0)
continue;
else if (i % 5 == 0)
contin... | using System;
namespace Test {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0)
continue;
else if (i % 3 == 0)
continue;
else if (i % 5 == 0)
conti... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 107 |
using System;
namespace Sumple1 {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
long n = cin.NextLong();
long sum = 0;
for (long i = 0; i < n; i++) {
if ((i % 3) == 0 & (i % 5) == 0) {
// FizzBuzz
} else if ((i % 3) == 0) {
// Fizz
} else if ((... | using System;
namespace Sumple1 {
class MainClass {
static void Main() {
Scanner cin = new Scanner();
long n = cin.NextLong();
long sum = 0;
for (long i = 1; i <= n; i++) {
if ((i % 3) == 0 & (i % 5) == 0) {
// FizzBuzz
} else if ((i % 3) == 0) {
// Fizz
} else if (... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 469 |
using System;
using System.Linq;
namespace ConsoleApp12 {
class Program {
static void Main(string[] args) {
double N = double.Parse(Console.ReadLine());
decimal Sc = 0;
if (N < 15) {
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
Sc +=... | using System;
using System.Linq;
namespace ConsoleApp12 {
class Program {
static void Main(string[] args) {
double N = double.Parse(Console.ReadLine());
decimal Sc = 0;
if (N < 15) {
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
Sc +=... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 168 |
using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
int count = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
// Console.WriteLine("FizzBuzz");
} else if (i % 5 == 0) {
// Console.WriteLi... | using System;
namespace AtCoder {
class Program {
static void Main(string[] args) {
long n = int.Parse(Console.ReadLine());
long count = 0;
for (long i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
// Console.WriteLine("FizzBuzz");
} else if (i % 5 == 0) {
// Console.Writ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["-", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 7, 10, 198, 39, 199]] | 8 | 113 |
using System;
namespace B_FizzBuzz_Sum {
class Program {
static void Main(string[] args) {
int ans = 0;
int n = int.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
} else {
ans += i;
}
}
Console.WriteLine(ans);
}
}
}
| using System;
namespace B_FizzBuzz_Sum {
class Program {
static void Main(string[] args) {
long ans = 0;
int n = int.Parse(Console.ReadLine());
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
} else {
ans += i;
}
}
Console.WriteLine(ans);
}
}
}
| [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 87 |
using System;
using System.Collections.Generic;
using System.Text;
namespace AtCoderCs {
class Class1 {
static void Main() {
var K = long.Parse(Console.ReadLine());
var Result = 0L;
for (; 0 < K; K--) {
if (K % 3 != 0 || K % 5 != 0)
Result += K;
}
Console.WriteLine(Result);
}... | using System;
using System.Collections.Generic;
using System.Linq;
namespace AtCoderCs {
class Program {
static void Main() {
var K = long.Parse(Console.ReadLine());
var Result = 0L;
for (; 0 < K; K--) {
if (K % 3 != 0 && K % 5 != 0)
Result += K;
}
Console.WriteLine(Result);
}... | [["-", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["+", 36, 36, 0, 208, 0, 231, 141, 232, 141, 22], ["-", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["+", 0, 208, 0, 209, 8, 201, 0, 235, 141, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 86 |
using System;
namespace B {
class Program {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
Int64 sum = 0;
for (int i = 0; i < num; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
Console.WriteLine(sum);
}
}
}
| using System;
namespace B {
class Program {
static void Main(string[] args) {
var num = int.Parse(Console.ReadLine());
Int64 sum = 0;
for (int i = 1; i < num + 1; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
Console.WriteLine(sum);
}
}
}
| [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 84 |
namespace Test {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Test {
public static void Main(string[] args) {
var t = new Test();
var input = t.ReadInputOneLine();
long sum = 0;
for (var i = 0; i < input; i++) {
if (i % 3 != 0) {
if... | namespace Test {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Test {
public static void Main(string[] args) {
var t = new Test();
var input = t.ReadInputOneLine();
long sum = 0;
for (var i = 1; i <= input; i++) {
if (i % 3 != 0) {
i... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 425 |
using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var n = Int32.Parse(Console.ReadLine());
var ret = 0;
for (var i = 1; i <= n; ++i) {
if (i % 3 != 0 && i % 5 != 0) {
ret += i;
}
}
Console.WriteLine(ret);
}
}... | using System;
using System.Collections.Generic;
using System.Linq;
public class Hello {
public static void Main() {
var n = Int32.Parse(Console.ReadLine());
long ret = 0;
for (var i = 1; i <= n; ++i) {
if (i % 3 != 0 && i % 5 != 0) {
ret += i;
}
}
Console.WriteLine(ret);
}
... | [["-", 8, 196, 0, 197, 0, 198, 39, 216, 0, 217], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 90 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args)
{
var n = ulong.Parse(Console.ReadLine());
var x = 0;
ulong ans = 0;
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AtCoder_solve {
class Program {
public const ulong mod = 1000000007;
static void Main(string[] args)
{
var n = ulong.Parse(Console.ReadLine());
var x = 0;
ulong ans = 0;
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 293 |
using System;
class MainClass {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
// long sum = (1 + N) * N / 2;
// int a = N / 3;
// long b = 3 * (1 + a) * a / 2;
// int c = N / 5;
// long d = 5 * (1 + c) * c / 2;
// int e = N / 15;
// long f = 1... | using System;
class MainClass {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
// long sum = (1 + N) * N / 2;
// int a = N / 3;
// long b = 3 * (1 + a) * a / 2;
// int c = N / 5;
// long d = 5 * (1 + c) * c / 2;
// int e = N / 15;
// long f = 1... | [["+", 0, 1, 0, 213, 3, 4, 0, 28, 0, 22]] | 8 | 92 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder1 {
class Program {
static void Main(string[] args) {
int num = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 0; i < num; i++) {
if (Check(i)) {
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Atcoder1 {
class Program {
static void Main(string[] args) {
int num = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 1; i <= num; i++) {
if (Check(i)) {
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 157 |
using System;
class p {
static void Main() {
int N = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 0; i < N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum += i;
}
Console.WriteLine(sum);
}
} | using System;
class p {
static void Main() {
int N = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum += i;
}
Console.WriteLine(sum);
}
}
| [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 78 |
using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder.Beginner162 {
public class ABC162B {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 0; i < N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
... | using System;
using System.Linq;
using System.Collections.Generic;
namespace AtCoder.Beginner162 {
public class ABC162B {
public static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
long sum = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 100 |
using System;
class ProgramB {
static void Main(string[] args) {
//入力
int n = int.Parse(Console.ReadLine());
long sum = 0;
// RかBかでそれぞれリストを作る
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 || i % 5 != 0)
sum += i;
}
Console.WriteLine(sum);
}
} | using System;
class ProgramB {
static void Main(string[] args) {
//入力
int n = int.Parse(Console.ReadLine());
long sum = 0;
// RかBかでそれぞれリストを作る
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
Console.WriteLine(sum);
}
} | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 106], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 98]] | 8 | 80 |
using System;
using System.Collections.Generic;
using System.Linq;
namespace abc162 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var input = Enumerable.Range(1, n).ToArray();
int ans = 0;
foreach (var item in input) {
if (item % 3 != 0 && item % 5... | using System;
using System.Collections.Generic;
using System.Linq;
namespace abc162 {
class Program {
static void Main(string[] args) {
var n = int.Parse(Console.ReadLine());
var input = Enumerable.Range(1, n).ToArray();
long ans = 0;
foreach (var item in input) {
if (item % 3 != 0 && item % ... | [["-", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199], ["+", 0, 195, 8, 196, 0, 197, 0, 198, 39, 199]] | 8 | 111 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC162 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
long o = 0;
for (int i = 0; i < N; i++) {
if (i % 3 == 0 || i % 5 == 0)
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ABC162 {
class Program {
static void Main(string[] args) {
var N = int.Parse(Console.ReadLine());
long o = 0;
for (int i = 0; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0)
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 108 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long answer = 0;
for (long i = 0; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
answer += i;
}
... | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class AtCoderB {
static void Main() {
var sc = new Scanner();
long n = sc.NextLong();
long answer = 0;
for (long i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
answer += i;
}
... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 391 |
using System;
namespace AtCoder.Problems {
public class ProblemB {
public static void Main(string[] args) {
var s = new SolveB();
s.Solve();
}
public class Scanner {
private string[] _s;
private int _i;
private readonly char[] _separators = new char[] { ' ' };
public... | using System;
namespace AtCoder.Problems {
public class ProblemB {
public static void Main(string[] args) {
var s = new SolveB();
s.Solve();
}
public class Scanner {
private string[] _s;
private int _i;
private readonly char[] _separators = new char[] { ' ' };
public... | [["-", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 7, 10, 198, 0, 200, 0, 212, 0, 203], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 503 |
using System;
namespace CSharp {
class Program {
static void Main() {
var N = long.Parse(Console.ReadLine());
var result = 0L;
for (int i = 1; i < N; i++) {
if (i % 3 > 0 && i % 5 > 0) {
result += i;
}
}
Console.WriteLine(result);
}
}
}
| using System;
namespace CSharp {
class Program {
static void Main() {
var N = long.Parse(Console.ReadLine());
var result = 0L;
for (int i = 1; i <= N; i++) {
if (i % 3 > 0 && i % 5 > 0) {
result += i;
}
}
Console.WriteLine(result);
}
}
}
| [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 8 | 80 |
using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Console.WriteLine(Enumerable.Range(0, N)
.Select(i => (long)i)
.Where(i => i % 3 != 0 && i % 5 != 0)
.Sum())... | using System;
using System.Linq;
class Program {
static void Main(string[] args) {
int N = int.Parse(Console.ReadLine());
Console.WriteLine(Enumerable.Range(1, N)
.Select(i => (long)i)
.Where(i => i % 3 != 0 && i % 5 != 0)
.Sum())... | [["-", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203], ["+", 63, 214, 205, 213, 3, 4, 0, 28, 0, 203]] | 8 | 82 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace Atcoder {
class Program {
private const long COMDIV = 1000000007;
static void Main(string[] args) {
var N = int.Parse(Console.ReadL... | using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO.Compression;
using System.Linq;
using System.Text;
namespace Atcoder {
class Program {
private const long COMDIV = 1000000007;
static void Main(string[] args) {
var N = int.Parse(Console.ReadL... | [["-", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["+", 0, 197, 0, 198, 39, 236, 237, 238, 0, 199], ["-", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199], ["+", 0, 212, 0, 230, 39, 236, 237, 238, 0, 199]] | 8 | 143 |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
var N = sc.ReadInt();
var X = sc.ReadInt() - 1;
var Y =... | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Program {
static void Main(string[] args) {
var sw =
new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
var N = sc.ReadInt();
var X = sc.ReadInt() - 1;
var Y =... | [["-", 8, 196, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 196, 0, 7, 15, 16, 12, 16, 12, 203]] | 8 | 2,369 |
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using System.Threading;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string S = Console... | using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text.RegularExpressions;
using System.Threading;
namespace ConsoleApp1 {
class Program {
static void Main(string[] args) {
string S = Console... | [["+", 0, 28, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 28, 0, 16, 31, 23, 0, 16, 12, 203]] | 8 | 149 |
using System;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
long x = int.Parse(Console.ReadLine());
int u = 0;
while (x > 500) {
x -= 500;
u += 1000;
}
while (x > 5) {
x -= 5;
u += 5;
}
Console.WriteLine(u);
}
}
}
| using System;
namespace ConsoleApp21 {
class Program {
static void Main(string[] args) {
long x = int.Parse(Console.ReadLine());
int u = 0;
while (x >= 500) {
x -= 500;
u += 1000;
}
while (x >= 5) {
x -= 5;
u += 5;
}
Console.WriteLine(u);
}
}
}
| [["-", 0, 195, 8, 196, 0, 52, 15, 16, 17, 47], ["+", 0, 195, 8, 196, 0, 52, 15, 16, 17, 20]] | 8 | 80 |
using System;
namespace abc160_b {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
int coinCount500 = x / 500;
int sum = 0;
int x5 = 0;
for (int i = 1; i <= coinCount500; i++) {
sum += 1000;
x5 = x % 500;
}
int coinCount5 = x5 / 5;
... | using System;
namespace abc160_b {
class Program {
static void Main(string[] args) {
int x = int.Parse(Console.ReadLine());
int coinCount500 = x / 500;
int sum = 0;
int x5 = x;
for (int i = 1; i <= coinCount500; i++) {
sum += 1000;
x5 = x5 % 500;
}
int coinCount5 = x5 / 5;... | [["-", 0, 197, 0, 198, 0, 200, 0, 212, 0, 203], ["+", 0, 197, 0, 198, 0, 200, 0, 212, 0, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22]] | 8 | 113 |
using System;
namespace AtCoder2020Ned {
class Program {
static void Main(string[] args) {
var money = int.Parse(Console.ReadLine());
var fiveHundredHappiness = money / 500 * 1000;
money %= 1000;
var fiveHappiness = money / 5 * 5;
Console.WriteLine(fiveHundredHappiness + fiveHappiness);
Cons... | using System;
namespace AtCoder2020Ned {
class Program {
static void Main(string[] args) {
var money = int.Parse(Console.ReadLine());
var fiveHundredHappiness = money / 500 * 1000;
money %= 500;
var fiveHappiness = money / 5 * 5;
Console.WriteLine(fiveHundredHappiness + fiveHappiness);
Conso... | [["-", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 203]] | 8 | 73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.