Skip to content

Commit c6da0fc

Browse files
committed
initial commit
0 parents  commit c6da0fc

File tree

2,591 files changed

+60067
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,591 files changed

+60067
-0
lines changed

Diff for: .vscode/launch.json

+1,107
Large diffs are not rendered by default.

Diff for: .vscode/tasks.json

+1,307
Large diffs are not rendered by default.

Diff for: AtCoder.code-workspace

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"editor.insertSpaces": false
9+
},
10+
"launch": {
11+
"version": "0.2.0",
12+
"configurations": []
13+
}
14+
}

Diff for: AtCoderBeginnerContest098/A.dart

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import 'dart:io';
2+
3+
void main() {
4+
String abc = stdin.readLineSync(); // 文字列入力
5+
print("Hello Dart!: ${abc}");
6+
stdin.readLineSync();
7+
}

Diff for: AtCoderBeginnerContest098/C.dart

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
void main() {
2+
print("Hello Dart!");
3+
}

Diff for: AtCoderBeginnerContest116/C/C.csproj

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

Diff for: AtCoderBeginnerContest116/C/Program.cs

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
using System;
2+
using System.Collections;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
7+
class Util{
8+
static void Main(){
9+
Sol mySol =new Sol();
10+
mySol.Solve();
11+
}
12+
}
13+
14+
class Sol{
15+
public void Solve(){
16+
int N = ri();
17+
int[] hArray = ria();
18+
19+
int ans = 0;
20+
while(hArray.Count((i) => i != 0) != 0) {
21+
ans++;
22+
23+
int maxHeight = hArray.Max();
24+
bool isWatering = false;
25+
bool startedWatering = false;
26+
for (int i = 0; i < N; i++)
27+
{
28+
isWatering = hArray[i] == maxHeight;
29+
if(isWatering) {
30+
startedWatering = true;
31+
hArray[i]--;
32+
} else if(startedWatering) {
33+
break;
34+
}
35+
}
36+
}
37+
38+
Console.WriteLine(ans);
39+
Console.ReadLine();
40+
}
41+
42+
static String rs(){return Console.ReadLine();}
43+
static int ri(){return int.Parse(Console.ReadLine());}
44+
static long rl(){return long.Parse(Console.ReadLine());}
45+
static double rd(){return double.Parse(Console.ReadLine());}
46+
static String[] rsa(char sep=' '){return Console.ReadLine().Split(sep);}
47+
static int[] ria(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>int.Parse(e));}
48+
static long[] rla(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>long.Parse(e));}
49+
static double[] rda(char sep=' '){return Array.ConvertAll(Console.ReadLine().Split(sep),e=>double.Parse(e));}
50+
static int[] generateNums(int num, int N){return Enumerable.Repeat(num, N).ToArray();}
51+
static int[] generateSuretsu(int N){return Enumerable.Range(0, N).ToArray();}
52+
}
53+
54+
public static class Combination {
55+
//使い方:int[][] Is = Combination.Enumerate(nums, k, withRepetition:false).ToArray();
56+
public static IEnumerable<T[]> Enumerate<T>(IEnumerable<T> items, int k, bool withRepetition) {
57+
if (k == 1) {
58+
foreach (var item in items)
59+
yield return new T[] { item };
60+
yield break;
61+
}
62+
foreach (var item in items) {
63+
var leftside = new T[] { item };
64+
65+
// item よりも前のものを除く (順列と組み合わせの違い)
66+
// 重複を許さないので、unusedから item そのものも取り除く
67+
var unused = withRepetition ? items : items.SkipWhile(e => !e.Equals(item)).Skip(1).ToList();
68+
69+
foreach (var rightside in Enumerate(unused, k - 1, withRepetition)) {
70+
yield return leftside.Concat(rightside).ToArray();
71+
}
72+
}
73+
}
74+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v3.1",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v3.1": {
9+
"C/1.0.0": {
10+
"runtime": {
11+
"C.dll": {}
12+
}
13+
}
14+
}
15+
},
16+
"libraries": {
17+
"C/1.0.0": {
18+
"type": "project",
19+
"serviceable": false,
20+
"sha512": ""
21+
}
22+
}
23+
}
9.5 KB
Binary file not shown.
171 KB
Binary file not shown.
2.08 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"runtimeOptions": {
3+
"additionalProbingPaths": [
4+
"C:\\Users\\owner\\.dotnet\\store\\|arch|\\|tfm|",
5+
"C:\\Users\\owner\\.nuget\\packages",
6+
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
7+
]
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"runtimeOptions": {
3+
"tfm": "netcoreapp3.1",
4+
"framework": {
5+
"name": "Microsoft.NETCore.App",
6+
"version": "3.1.0"
7+
}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"format": 1,
3+
"restore": {
4+
"D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj": {}
5+
},
6+
"projects": {
7+
"D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj": {
8+
"version": "1.0.0",
9+
"restore": {
10+
"projectUniqueName": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj",
11+
"projectName": "C",
12+
"projectPath": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj",
13+
"packagesPath": "C:\\Users\\owner\\.nuget\\packages\\",
14+
"outputPath": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\obj\\",
15+
"projectStyle": "PackageReference",
16+
"fallbackFolders": [
17+
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
18+
],
19+
"configFilePaths": [
20+
"C:\\Users\\owner\\AppData\\Roaming\\NuGet\\NuGet.Config",
21+
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
22+
],
23+
"originalTargetFrameworks": [
24+
"netcoreapp3.1"
25+
],
26+
"sources": {
27+
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
28+
"https://api.nuget.org/v3/index.json": {}
29+
},
30+
"frameworks": {
31+
"netcoreapp3.1": {
32+
"projectReferences": {}
33+
}
34+
},
35+
"warningProperties": {
36+
"warnAsError": [
37+
"NU1605"
38+
]
39+
}
40+
},
41+
"frameworks": {
42+
"netcoreapp3.1": {
43+
"imports": [
44+
"net461",
45+
"net462",
46+
"net47",
47+
"net471",
48+
"net472",
49+
"net48"
50+
],
51+
"assetTargetFallback": true,
52+
"warn": true,
53+
"frameworkReferences": {
54+
"Microsoft.NETCore.App": {
55+
"privateAssets": "all"
56+
}
57+
},
58+
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
59+
}
60+
}
61+
}
62+
}
63+
}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2+
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4+
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5+
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6+
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7+
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8+
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\owner\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
9+
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10+
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.6.0</NuGetToolVersion>
11+
</PropertyGroup>
12+
<PropertyGroup>
13+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
14+
</PropertyGroup>
15+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2+
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5+
</PropertyGroup>
6+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// <autogenerated />
2+
using System;
3+
using System.Reflection;
4+
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// このコードはツールによって生成されました。
4+
// ランタイム バージョン:4.0.30319.42000
5+
//
6+
// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
7+
// コードが再生成されるときに損失したりします。
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
11+
using System;
12+
using System.Reflection;
13+
14+
[assembly: System.Reflection.AssemblyCompanyAttribute("C")]
15+
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18+
[assembly: System.Reflection.AssemblyProductAttribute("C")]
19+
[assembly: System.Reflection.AssemblyTitleAttribute("C")]
20+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21+
22+
// Generated by the MSBuild WriteCodeFragment class.
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1e2aa42763d1a08b7db4756eb1f42c6768e3e567
192 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ce9ca9a4c88293b95394eb49a37fcdb97909ce80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\bin\Debug\netcoreapp3.1\C.exe
2+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\bin\Debug\netcoreapp3.1\C.deps.json
3+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\bin\Debug\netcoreapp3.1\C.runtimeconfig.json
4+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\bin\Debug\netcoreapp3.1\C.runtimeconfig.dev.json
5+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\bin\Debug\netcoreapp3.1\C.dll
6+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\bin\Debug\netcoreapp3.1\C.pdb
7+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\obj\Debug\netcoreapp3.1\C.csprojAssemblyReference.cache
8+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\obj\Debug\netcoreapp3.1\C.csproj.CoreCompileInputs.cache
9+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\obj\Debug\netcoreapp3.1\C.dll
10+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\obj\Debug\netcoreapp3.1\C.pdb
11+
D:\Documents\AtCoder\AtCoderBeginnerContest116\C\obj\Debug\netcoreapp3.1\C.genruntimeconfig.cache
Binary file not shown.
9.5 KB
Binary file not shown.
171 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
86c8e15dd33445635927cfaf398408205fd11473
2.08 KB
Binary file not shown.

Diff for: AtCoderBeginnerContest116/C/obj/project.assets.json

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"version": 3,
3+
"targets": {
4+
".NETCoreApp,Version=v3.1": {}
5+
},
6+
"libraries": {},
7+
"projectFileDependencyGroups": {
8+
".NETCoreApp,Version=v3.1": []
9+
},
10+
"packageFolders": {
11+
"C:\\Users\\owner\\.nuget\\packages\\": {},
12+
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
13+
},
14+
"project": {
15+
"version": "1.0.0",
16+
"restore": {
17+
"projectUniqueName": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj",
18+
"projectName": "C",
19+
"projectPath": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj",
20+
"packagesPath": "C:\\Users\\owner\\.nuget\\packages\\",
21+
"outputPath": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\obj\\",
22+
"projectStyle": "PackageReference",
23+
"fallbackFolders": [
24+
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
25+
],
26+
"configFilePaths": [
27+
"C:\\Users\\owner\\AppData\\Roaming\\NuGet\\NuGet.Config",
28+
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
29+
],
30+
"originalTargetFrameworks": [
31+
"netcoreapp3.1"
32+
],
33+
"sources": {
34+
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
35+
"https://api.nuget.org/v3/index.json": {}
36+
},
37+
"frameworks": {
38+
"netcoreapp3.1": {
39+
"projectReferences": {}
40+
}
41+
},
42+
"warningProperties": {
43+
"warnAsError": [
44+
"NU1605"
45+
]
46+
}
47+
},
48+
"frameworks": {
49+
"netcoreapp3.1": {
50+
"imports": [
51+
"net461",
52+
"net462",
53+
"net47",
54+
"net471",
55+
"net472",
56+
"net48"
57+
],
58+
"assetTargetFallback": true,
59+
"warn": true,
60+
"frameworkReferences": {
61+
"Microsoft.NETCore.App": {
62+
"privateAssets": "all"
63+
}
64+
},
65+
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.301\\RuntimeIdentifierGraph.json"
66+
}
67+
}
68+
}
69+
}

Diff for: AtCoderBeginnerContest116/C/obj/project.nuget.cache

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"version": 2,
3+
"dgSpecHash": "lAQ6ZONJ+uXDY4hR4e8Li0OkMe9MCcWHqHWr1TYH9yLu3NVN6iqW2y26yxduBjcMZic2g8++3yHDHee+powQ1g==",
4+
"success": true,
5+
"projectFilePath": "D:\\Documents\\AtCoder\\AtCoderBeginnerContest116\\C\\C.csproj",
6+
"expectedPackageFiles": [],
7+
"logs": []
8+
}

Diff for: AtCoderBeginnerContest117/A/A.csproj

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.1</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

Diff for: AtCoderBeginnerContest117/A/Program.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
3+
namespace A
4+
{
5+
class Program
6+
{
7+
static void Main(string[] args)
8+
{
9+
Console.WriteLine("Hello World!");
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)