
codeforces
伪神
伪神
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
codeforces_1A Theatre Square
题目链接:http://www.codeforces.com/problemset/problem/1/A 题目大意:n×m 的长方形区域,至少需要多少 a×a 的正方形才能将其覆盖?(正方形的边与对应长方形的边平行) //C++代码 #include using namespace std; int main(){ long long n,m,a,b,c; cin>>n>>原创 2013-04-22 22:55:23 · 685 阅读 · 0 评论 -
codeforces_1B Spreadsheets
题目链接 http://www.codeforces.com/problemset/problem/1/B 题目大意:两种表示法之间的转换。第一种:字母部分(列)+数字部分(行);第二种:R+行+C+列。 //C++代码 #include #include #include using namespace std; int main(){ int n; cin>>n; whil原创 2013-04-23 22:37:17 · 596 阅读 · 0 评论 -
codeforces_4A Watermelon
题目链接:http://codeforces.com/problemset/problem/4/A 题目大意:给定一个正整数 n, 判断是否存在两个正偶数 a, b, 使得 n = a + b. //C++代码 #include using namespace std; int main(){ int n; cin>>n; if(n==2 || n&1) cout<<"NO"<<原创 2013-05-25 11:42:07 · 627 阅读 · 0 评论 -
codeforces_9A Die Roll
题目链接:http://codeforces.com/problemset/problem/9/A 题目大意:抛掷两次骰子得点数 a, b, 再抛掷一次骰子,求出现的点数大于等于 a 和 b 的概率 //C++代码 #include using namespace std; int main(){ int n,m; cin>>n>>m; if(n<m) n=m; if(n==1原创 2013-05-25 23:11:34 · 628 阅读 · 0 评论 -
codeforces_13A Numbers
题目链接:http://codeforces.com/problemset/problem/13/A //C++代码 #include using namespace std; int gcd(int n,int m){ return m==0? n:gcd(m,n%m); } int main(){ int n,m,i,sum=0; cin>>n; for(i=2;i<n;i原创 2013-05-28 22:17:58 · 694 阅读 · 0 评论 -
codeforces_312A Whose sentence is it?
题目链接:http://codeforces.com/problemset/problem/312/A //C++代码 #include #include using namespace std; int main(){ int n,m; char a[105]; (cin>>n).getline(a,105); while(n--){ cin.getline(a,105);原创 2013-05-28 23:41:32 · 697 阅读 · 0 评论 -
codeforces_38C Blinds
题目链接:http://codeforces.com/problemset/problem/38/C //C++代码 #include using namespace std; int main(){ int n,l,max=0,ans=0,i,j,a[100]; cin>>n>>l; for(i=0;i<n;i++){ cin>>a[i]; if(a[i]>max) ma原创 2013-05-30 17:43:33 · 689 阅读 · 0 评论 -
codeforces_59B Fortune Telling
题目链接:http://codeforces.com/problemset/problem/59/B //C++代码 #include using namespace std; int main(){ int n,m,sum=0,a=101; cin>>n; while(n--){ cin>>m; sum+=m; if(m&1 && m<a) a=m; } if(s原创 2013-05-31 10:42:20 · 888 阅读 · 0 评论