Skip to content

Commit 1183386

Browse files
committed
30jan2021_7Years_inBed_Cold_Atcoder:)
1 parent 2b5b794 commit 1183386

Some content is hidden

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

45 files changed

+908
-202
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@
4646
"typeindex": "cpp"
4747
},
4848
"competitive-programming-helper.firstTime": false,
49-
"compile-hero.disable-compile-files-on-did-save-code": true
49+
"compile-hero.disable-compile-files-on-did-save-code": true,
50+
"cmake.configureOnOpen": false
5051
}

.vscode/tasks.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/hcc/hcc.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/hcc/hcc.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"${workspaceFolder}/hcc/hcc.csproj",
36+
"/property:GenerateFullPaths=true",
37+
"/consoleloggerparameters:NoSummary"
38+
],
39+
"problemMatcher": "$msCompile"
40+
}
41+
]
42+
}

189a.cpp

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/* |\ | | ||\ \ /(_~ |~)|_~|\/||_~|\/||~)|_~|~)
2+
|~\|_|/\||~\ | ,_) |~\|__| ||__| ||_)|__|~\
3+
4+
\ //~\| | |\ |~)|_~ | ||\ ||/~\| ||_~
5+
| \_/\_/ |~\|~\|__ \_/| \||\_X\_/|__
6+
(J U S T L I K E E V E R Y O N E E L S E !)
7+
8+
__ ,..---.._
9+
+''''`--''-..`--..__
10+
.\ _,/:i--._`:-:+._`.``-._
11+
/`.._,,' \ `-.``--:.b....=.
12+
|`..__,,..`. '`.__::i--.-::_
13+
)- .....--i'\.. --+`'''-'
14+
,' .'.._,.-'|._-b\
15+
/,'<' V `oi| \ _.
16+
|/ -|,--.." ,'-. ||\.. _.,;:'_<'
17+
''/ | . ' |\||'\ /-'_/' `.
18+
|,','| , . .-.|:.`. + .,:.. |
19+
._,:'/ /-\ '^' -Y"\ |.| || /,+8d| |
20+
.|/,'| |/':: ':=:' ,'| | | \|| "+)=' |
21+
|+,';' /|_/ \ _/ \b':.\ \'| .|| ,'
22+
,,:-i''_i' | ``-.Y',. ,|`: | \;- | |_,'
23+
__ |'| |i:'._ ,' ,' ,; | |-)-' __--:b__
24+
.P| | |/,'|\ - ._ / / _,Y- ,:/' `. `'".._
25+
,'|| -','' | ._i._ `':| ,..,' ,Y;' \ `- ._
26+
|||||,.. | \ '-.._ _,' / _,b-' `. '-.
27+
||||P..i, .| '....,-' _,'''''-''' ' _,.. `\
28+
+'` <'/ |`-.....---' ._ ,._
29+
| | ,'``,:-''''/,--`.
30+
Y|.b_,,: | || ,;,Y' / |.
31+
,' /'----' .'| .. | | '" .`Y' .,-b_....;;,.
32+
|+|,' | | \., ' ,' `:. _ ,/__` _=: _,'``-
33+
/ +,' | /\_........:.' '"----:::::'Y .'.| |||
34+
|' ' .'/- \ /'|| || | |||
35+
||| /| \L /'|| ||/ | |||
36+
`.| ,'/ .| / ,'||/o;/ |||
37+
`..._,, | |/| ' |||
38+
``-' | |, |||
39+
| ,. | |||
40+
,=--------.... | "" | |||
41+
,/,'. i=..+._ ,.. '..;---:::''- | |
42+
'/| __....b `-''`---....../.,Y'''''j:.,.._ | `._
43+
.' _.Y.-' `.. ii:,'--------' | :-+. .| | b\
44+
| .=_,.---'''''--...:..--:' / _..-----..:= | | '|\
45+
| '-''`'--- ---'_,,,--'' `,.. | | \.
46+
\ . ,' _,--'' :dg: _,/ ||| | \
47+
`::b\` _,-i,-' ,..---' ,|:| | _|
48+
`'--.:-._ ____,,,;.,'' `--._ '''''''' |'|' .' '
49+
``'--....Y''-' `''--..._..____._____...,' | 'o-'
50+
`''''`'''i==_+=_=i__
51+
||'''- ' `.
52+
`-.......-''
53+
*/
54+
#include<bits/stdc++.h>
55+
using namespace std;
56+
57+
#define fastio ios_base::sync_with_stdio(0); cin.tie(0)
58+
#define LL long long
59+
#define mod 1000000007
60+
#define all(v) v.begin(),v.end()
61+
#define pr(v) pair<v,v>
62+
#define pb push_back
63+
#define FOR(i, j, k) for (auto i=j ; i<k ; i++)
64+
#define ROF(i, j, k) for (auto i=j ; i>=k ; i--)
65+
#define debug(...) fprintf(stderr, __VA_ARGS__), fflush(stderr)
66+
#define time__(d) for(long blockTime = 0; (blockTime == 0 ? (blockTime=clock()) != 0 : false); debug("%s time : %.4fs", d, (double)(clock() - blockTime) / CLOCKS_PER_SEC))
67+
68+
const long long INF = 1e18;
69+
const long long MAX = 2e5+10;
70+
int main(){
71+
fastio;
72+
int t=1;// cin>>t;
73+
while(t--){
74+
string s; cin>>s;
75+
if(s[0]==s[1] && s[1]==s[2] && isupper(s[0]) && isupper(s[1]) && isupper(s[2]))
76+
cout<<"Won";
77+
else cout<< "Lost";
78+
}
79+
}

a.out

-13.9 KB
Binary file not shown.

diw.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
#define FOR(i, j, k) for (auto i=j ; i<k ; i++)
4+
5+
int main() {
6+
string s; cin>>s;
7+
map<char,int>m;
8+
9+
FOR(i,0,s.size()) {
10+
m[s[i]]++;
11+
}
12+
int ans = 0;
13+
FOR(i,0,s.size()) {
14+
if(m[s[i]]==1) {
15+
ans++; m[s[i]] =0;
16+
}
17+
}
18+
cout<<ans;
19+
}

ea.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
n = input()
2-
mx=[-1 for x in range(1)]
3-
for i in range(n-1,0,-1):
4-
mx[i]=max(a[i],mx[i+1])
1+
def find_Novowels(words):
2+
novowelwords = []
3+
vowel = ['a', 'e', 'i', 'o', 'u']
4+
for word in words:
5+
novowel = True
56

6-
ans = 0
7-
for i in range(0,n):
8-
ans=max(ans,mx[i]-a[i])
7+
for letter in word:
8+
if letter in vowel:
9+
novowel=False
910

10-
print(ans)
11+
if novowel == True:
12+
novowelwords.append(word)
13+
return novowelwords
14+
15+
print(find_Novowels(['wqrty','swpty','spwrt']))

hc.cpp

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
#define FOR(i, j, k) for (auto i=j ; i<k ; i++)
4+
5+
bool check(int i,int j, int n, int m){
6+
if(i<0 || j<0 || i>=n || j>=m)
7+
return false;
8+
return true;
9+
}
10+
11+
int f(int n, int m,vector<vector<int>>&b,int p){
12+
int dp[n][m];
13+
FOR(i,0,n) FOR(j,0,m) dp[i][j] = 0;
14+
dp[0][p]=b[0][p];
15+
FOR(i,1,n)
16+
FOR(j,0,m) {
17+
int ul=0,u=0,ur=0;
18+
if(check(i-1,j-1,n,m)) ul= dp[i-1][j-1];
19+
if(check(i-1,j,n,m)) u = dp[i-1][j];
20+
if(check(i-1,j+1,n,m)) ur = dp[i-1][j+1];
21+
dp[i][j] = max({ul,u,ur});
22+
if(dp[i][j]>0) dp[i][j]+=b[i][j];
23+
}
24+
int mx = 0;
25+
FOR(i,0,m) mx = max(mx,dp[n-1][i]);
26+
return mx;
27+
}
28+
int maxPathsum(vector<vector<int>>&b,int p, int q){
29+
int n = b.size(),m=b[0].size();
30+
int val1 = f(n,m,b,p);
31+
int l=0,r=n-1;
32+
33+
while(l<r){
34+
FOR(i,0,m) swap(b[l][i],b[r][i]);
35+
l++;r--;
36+
}
37+
int val2 = f(n,m,b,q);
38+
39+
return max(val1,val2);
40+
}
41+
int main() {
42+
int n,m; cin>>n>>m;
43+
vector<vector<int>>b(n,vector<int>(m));
44+
FOR(i,0,n) FOR(j,0,m) cin>>b[i][j];
45+
int p,q; cin>>p>>q;
46+
cout<<maxPathsum(b,p,q);
47+
}

hcc/Program.cs

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

hcc/bin/Debug/net5.0/hcc

135 KB
Binary file not shown.

hcc/bin/Debug/net5.0/hcc.deps.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"runtimeTarget": {
3+
"name": ".NETCoreApp,Version=v5.0",
4+
"signature": ""
5+
},
6+
"compilationOptions": {},
7+
"targets": {
8+
".NETCoreApp,Version=v5.0": {
9+
"hcc/1.0.0": {
10+
"runtime": {
11+
"hcc.dll": {}
12+
}
13+
}
14+
}
15+
},
16+
"libraries": {
17+
"hcc/1.0.0": {
18+
"type": "project",
19+
"serviceable": false,
20+
"sha512": ""
21+
}
22+
}
23+
}

hcc/bin/Debug/net5.0/hcc.dll

4.5 KB
Binary file not shown.

hcc/bin/Debug/net5.0/hcc.pdb

9.13 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"runtimeOptions": {
3+
"additionalProbingPaths": [
4+
"/home/maverick/.dotnet/store/|arch|/|tfm|",
5+
"/home/maverick/.nuget/packages"
6+
]
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"runtimeOptions": {
3+
"tfm": "net5.0",
4+
"framework": {
5+
"name": "Microsoft.NETCore.App",
6+
"version": "5.0.0"
7+
}
8+
}
9+
}

hcc/bin/Debug/net5.0/ref/hcc.dll

5 KB
Binary file not shown.

hcc/hc.py

-35
This file was deleted.

hcc/hcc.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>net5.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

hcc/hv.py

-42
This file was deleted.

0 commit comments

Comments
 (0)