【codeforces】New Year and Days
来源:互联网 发布:tnt刷永久武器软件 编辑:程序博客网 时间:2024/05/11 16:55
思路:水
#include<stdio.h>#include<string.h>char c[20];int main() { int n; while(scanf("%d",&n)!=EOF) { getchar(); gets(c); if(c[3]=='m') { if(n<=29) printf("12\n"); else if(n==30) printf("11\n"); else printf("7\n"); } if(c[3]=='w') { if(n<=4||n==7) printf("52\n"); else printf("53\n"); } } return 0;}
0 0
- Codeforces New Year and Days
- 【codeforces】New Year and Days
- 【codeforces】New Year and Days
- CodeForces 611A New Year and Days
- 【CodeForces】[659A]New Year and Days
- CodeForces 611A New Year and Days
- 【CodeForces 611A】New Year and Days
- codeforces 611A New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- New Year and Days
- hdu 1305 Immediate Decodability 简单字典树
- linux mysql问题集
- Github使用教程
- node.js AES/ECB/PKCS5Padding 与其他语言的加密解密通用
- CSS3的3D转换translate3d(x,y,z)函数
- 【codeforces】New Year and Days
- 求二叉树的镜像
- 【leetcode】122. Best Time to Buy and Sell Stock II
- Objective-C & Sprite Kit太空历险记 : 6. 打造战队——数组、集合与字典
- 浅学Notification/PendingIntent
- java生成随机数方法大全(可指定范围、分布方式、类型、种子)
- 初学者eclipse常见环境配置问题
- Objective-C & Sprite Kit太空历险记 : 7. 信息情报官——字符串处理
- LeetCode Guess Number Higher or Lower