2019-11-01から1ヶ月間の記事一覧

HSK5级 周9

应试策略与技巧 有家体育场为满足球迷看球的需要,把球场内观众的座位从八万个增加到了十二万个。 观看球赛的人多了,体育场的收入也增多了。 但是这也带了一个严重的问题:球场周围的路只能供十万人通行。 对于十二万的观众来说远远不够。 这样有重大比赛时…

ABC022C Blue Bird

問題 atcoder.jp コード(テンプレは省略) using P = pair<int, int>; struct edge { int to; int cost; }; int V; vector<edge> G[400]; int d[100000]; void dijkstra(int s) { priority_queue<P, vector<P>, greater<P> > que; fill(d, d+V, INF); d[s] = 0; que.push(P(0, s)); while (!qu</p></p,></edge></int,>…

ABC37 D 経路

問題 atcoder.jp コード(テンプレは省略) int H,W; ll a[1010][1010]; ll dp[1010][1010]; void dfs(int x,int y){ if(dp[x][y]) return; dp[x][y] = 1; if(x > 0 && a[x][y] < a[x-1][y]){ dfs(x-1,y); dp[x][y] += dp[x-1][y]; dp[x][y] %= (ll)MOD; } if(…

DDCC予選

問題 atcoder.jp A DDCC Finals コード(テンプレは省略) ll point(ll a){ if(a == 1) return 300000; if(a == 2) return 200000; if(a == 3) return 100000; return 0; } int main(){ ll x,y; cin >> x >> y; cout << point(x) + point(y) + (x*y==1?400000:…

問題 atcoder.jp コード #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<long long> VLL; typedef vector<pair<int,int>> VP; #define INF (int)(1e9) #define MAXX 1.1529215e+18 #define inf 999999 #define EPS (1e-7) #define MOD (1e9+7) #define rep(i,n</pair<int,int></long></bits/stdc++.h>…

ABC003 C AtCoderプログラミング講座

問題 atcoder.jp コード #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<long long> VLL; typedef vector<pair<int,int>> VP; #define INF (int)(1e9) #define MAXX 1.1529215e+18 #define inf 999999 #define EPS (1e-7) #define MOD (1e9+7) #define rep(i,n</pair<int,int></long></bits/stdc++.h>…

中国語検定2級 第98回 筆記 2

(1)开会日期推迟到下周,以便有充裕的准备时间。 推迟tuīchí 把预定的时间往后移 以便 用在下半句话的开头,表示使下文所说的目的容易实现 充裕chōngyù 充足富裕 充裕が形容詞であることに気づけなかった。 (2)就是未成年人也得对自己做的事负责 (3)这件事直…

ABC135 D Digits Parade

問題 atcoder.jp コード #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <vector> #include <queue> #include <iostream> #include <set> #include <map> #include <string> #include <algorithm> #include <stack> #include <sstream> #include <list> using namespace std; #define rep(…</list></sstream></stack></algorithm></string></map></set></iostream></queue></vector></cmath></cstring></cstdlib></cstdio>

小点心 怎么区别?

生词 翻 反转 数量成倍的增加 超过 飞 模糊 轮廓模糊不清 强调难以辨认 时常 经常 如同 好像,类似 难以 根据场合或情况很难作为自然的结果或后果 分辨 区分辨别 扭 痒 皮肤或黏膜受刺激需要抓挠的一种感觉 无济于事 对解决问题毫无济助 茅塞顿开 比喻人心有…

ABC145 感想

ABC145 問題 atcoder.jp A r * r B s[i]とs[i+n/2]をi=[0,n/2)で順に調べていく C グラフで考えると、枝の総数は本。各!通りの経路について、1つの経路に使用される枝の本数は本。 よって、経路の総和のが1つの経路に使われていることがわかるから、対称性…

ARC043 A 点数変換

問題 atcoder.jp コード C++ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<long long> VLL; typedef vector<pair<int,int>> VP; #define INF (int)(1e9) #define MAXX 1.1529215e+18 #define inf 999999 #define EPS (1e-7) #define MOD (1e9+7) #define rep</pair<int,int></long></bits/stdc++.h>…

AGC 018 A

問題 atcoder.jp コード import numpy as np import sys import math from functools import reduce import fractions as fr def gcd(*numbers): return reduce(fr.gcd, numbers) n,k = map(int,input().split()) a = list(map(int,input().split())) c = in…

小点心 东南西北

生词 本来 从一开始 心慌意乱 形容心里着乱,乱了主意 自如 没有障碍的 尽管 表示不必考虑的,相当于只管

中国語検定2級 第98回

問題 問題はこちら 1 生词 泡茶 用煮开的水冲茶 涮 摇动着冲刷,略微洗洗 看不上 看不过眼,不合意

ABC114 755

問題 atcoder.jp 方針 ABC119 Synthetic Kadomatsuと似ていたので、DFSで実装した。 #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<long long> VLL; typedef vector<pair<int,int>> VP; #define INF (int)(1e9) #define MAXX 1.1529215e+18 #define inf 99999</pair<int,int></long></bits/stdc++.h>…