Codeforces
老虞面馆
这个作者很懒,什么都没留下…
展开
-
A Taymyr is calling you--Codeforces Round #395 (Div. 2)
Codeforces Round #395 (Div. 2)简单数学题#include<iostream> using namespace std;int gcd(int a,int b){ if(a%b==0) return b; return gcd(b,a%b); } int main(){ int n,m,z; cin>>n>>m>>z;原创 2017-02-04 09:52:25 · 301 阅读 · 0 评论 -
Codeforces Round #408 (Div. 2) A Buying A House
传送门#include<stdio.h>#define MAX_N 110int house[MAX_N];int main(){ int n,m,k; scanf("%d%d%d",&n,&m,&k); for(int i=1;i<=n;i++){ scanf("%d",&house[i]); if(house[i]==0)原创 2017-04-11 10:58:46 · 419 阅读 · 0 评论 -
Codeforces Round #428 (Div. 2) A. Arya and Bran
传送门#include<iostream> using namespace std;#define MAX_N 100010 int main(){ int a[MAX_N]; int n,k; scanf("%d%d",&n,&k); for(int i=1;i<=n;i++) { scanf("%d",&a[i]); } int c原创 2017-08-20 20:08:09 · 346 阅读 · 0 评论