actcoder
抠脚老騷
这个作者很懒,什么都没留下…
展开
-
AtCoder Beginner Contest 250
AtCoder Beginner Contest 250A - Adjacent Squares#include <bits/stdc++.h>#define endl '\n'using namespace std;int main(){ ios::sync_with_stdio(false),cin.tie(nullptr); int h,w,r,c; cin>>h>>w>>r>>c; int dir原创 2022-05-09 11:43:45 · 144 阅读 · 0 评论 -
AtCoder Beginner Contest 247
AtCoder Beginner Contest 247B - Unique Nicknames#include <bits/stdc++.h>#pragma GCC optimize(2)using namespace std;#define int long longtypedef long long LL;typedef long long ll;const int INF = 0x3f3f3f3f;//const int inf = 1e18;const in原创 2022-04-25 21:00:35 · 180 阅读 · 0 评论 -
AtCoder Beginner Contest 217
AtCoder Beginner Contest 217C - Inverse of Permutation#include <bits/stdc++.h>#pragma GCC optimize(2)using namespace std;#define int long longtypedef long long LL;typedef long long ll;const int INF = 0x3f3f3f3f;//const int inf = 1e18;//con原创 2021-09-06 20:36:25 · 160 阅读 · 0 评论 -
AtCoder Beginner Contest 198
AtCoder Beginner Contest 198B - Palindrome with leading zeros#include <bits/stdc++.h>#pragma GCC optimize(2)using namespace std;#define int long longtypedef long long LL;typedef long long ll;const int INF = 0x3f3f3f3f;//const int inf = 1e18原创 2021-04-11 22:17:36 · 202 阅读 · 0 评论 -
Panasonic Programming Contest (AtCoder Beginner Contest 195)
Panasonic Programming Contest (AtCoder Beginner Contest 195)B - Many Oranges最小为mi=(w+b-1)/b最大直接让mi自增倒不符和为止,即w>mab||w<maa#include <bits/stdc++.h>//#pragma GCC optimize(2)using namespace std;#define int long longtypedef long long LL;typ原创 2021-03-15 10:33:17 · 359 阅读 · 1 评论 -
AtCoder Beginner Contest 190
AtCoder Beginner Contest 190A - Very Very Primitive Game#include <bits/stdc++.h>#pragma GCC optimize(2)#define int long longusing namespace std;//const int mod = 998244353;const int inf=1e18;const int mod = 1e9 + 7;const int maxn = 3e5 + 10原创 2021-01-30 21:57:34 · 2291 阅读 · 7 评论 -
AtCoder Beginner Contest 189
AtCoder Beginner Contest 189A - Slot#include <bits/stdc++.h>//#pragma GCC optimize(2)#define int long longusing namespace std;//const int mod = 998244353;const int mod = 1e9 + 7;const int maxn = 1e3 + 10;int a[maxn];void solve() { /*原创 2021-01-25 21:48:12 · 142 阅读 · 0 评论 -
AtCoder Beginner Contest 188
AtCoder Beginner Contest 188A Three-Point Shot#include <bits/stdc++.h>#define int long longusing namespace std;//const int mod = 998244353;const int mod = 1e9 + 7;const int maxn = 1e6 + 10;void solve() { int x,y; cin>>x>>原创 2021-01-11 18:40:41 · 184 阅读 · 1 评论 -
AtCoder Beginner Contest 184
AtCoder Beginner Contest 184A - Determinant#include <bits/stdc++.h>#define int llusing namespace std;typedef long long ll;const int maxn=1e6+5;const int mod=998244353;void solve() { int a,b,c,d; cin>>a>>b>>c>>原创 2020-11-22 22:11:51 · 77 阅读 · 0 评论 -
AtCoder Beginner Contest 182
AtCoder Beginner Contest 182A - twiblr#include <bits/stdc++.h>#define int llusing namespace std;typedef long long ll;const int maxn = 1e5 + 10;const int mod = 998244353;void solve() { int a,b; cin>>a>>b; cout<<原创 2020-11-08 22:27:15 · 190 阅读 · 0 评论 -
AtCoder Beginner Contest 179
AtCoder Beginner Contest 179A - Plural Form#include <bits/stdc++.h>#define int ll//#pragma GCC optimize(2)using namespace std;typedef long long ll;const int maxn = 1e5 + 10;const int mod=998244353;void solve() { string s; cin>&g原创 2020-11-08 09:30:00 · 152 阅读 · 0 评论 -
AtCoder Beginner Contest 177
AtCoder Beginner Contest 177A - Don’t be late#include <bits/stdc++.h>//#define int lltypedef long long ll;const int INF = 0x3f3f3f3f;const int mod = 1e9 + 7;const int MAX = 1e5 + 10;using namespace std;int solve() { int d,t,s; cin&g原创 2020-08-30 17:05:32 · 223 阅读 · 0 评论 -
AtCoder Beginner Contest 176
AtCoder Beginner Contest 176A - Takoyaki#include <bits/stdc++.h>using namespace std;typedef long long ll;const int MAX = 2e5 + 10;const int INF=0x3f3f3f3f;const int mod=1e9+7;void solve() { ll n,x,t; cin>>n>>x>>t;原创 2020-08-23 15:57:48 · 146 阅读 · 0 评论 -
AtCoder Beginner Contest 175
AtCoder Beginner Contest 175A - Rainy Season#include<bits/stdc++.h>using namespace std;typedef long long ll;const int MAX=1e5+10;void solve(){ int n=0,m=0; string s; cin>>s; for (int i = 0; i < 3; ++i) { if (s[原创 2020-08-15 23:24:47 · 438 阅读 · 0 评论