
CF
BEconfidence
坚持才是胜利之道
展开
-
CodeChef CHAPD
个人赛的题出不来还是没有想清楚!#includeusing namespace std;typedef long long ll;ll gcd(ll a,ll b){ return b==0?a:gcd(b,a%b);}int main(){ int t; scanf("%d",&t); while(t--){ ll a,b;原创 2015-08-30 15:24:57 · 713 阅读 · 0 评论 -
CodeForces 483B(水题)
#includeusing namespace std;typedef __int64 LL;LL cnt1,cnt2,x,y;bool ok(LL v){ LL Dx=v/x;///能被x整除的个数 LL Dy=v/y;///能被y整除的个数 LL Dxy=v/(x*y);///能被x和y整除的个数 LL _Dxy = v-Dx-Dy+Dxy;///容斥原原创 2015-11-16 13:48:19 · 668 阅读 · 0 评论 -
cf:数值进制计算
#include using namespace std;#define pb push_back#define ll long long#define mp make_pair#define f first#define s second#define pii pair #define pll pair #define all(s) s.begin(), s.end()#d原创 2015-11-25 12:57:09 · 1099 阅读 · 0 评论 -
思路
B. Spongebob and Joketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhile Patrick was gone shopping, Spon原创 2015-11-25 12:23:17 · 622 阅读 · 0 评论 -
CodeForces 670B、HDU 1003、CodeForces 632C
Game of RobotsTime Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64uSubmit StatusDescriptionIn late autumn evening n robots gathered in the chee原创 2016-05-27 23:48:02 · 658 阅读 · 0 评论 -
cfA. Odds and Ends
A. Odds and Endstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhere do odds begin, and where do they end?原创 2017-09-01 23:11:16 · 277 阅读 · 0 评论