Codeforces Round #355 (Div. 2)C - Vanya and Label
来源:互联网 发布:mac和nars哪个修容粉好 编辑:程序博客网 时间:2024/05/16 04:30
啊啊啊啊啊啊啊,真的是智障了。。。
这种题目,没有必要纠结来源。只要知道它的结果的导致直接原因?反正这句话就我听的懂吧。。。
“>>”/“&”
#include<cstdio>int main(){ int ans=1; for(int i=0;i<=1;i++) printf("%d\n",ans&i); ans=0; for(int i=0;i<=1;i++) printf("%d\n",ans&i); ans=12; for(int j=0;j<6;j++) { printf("%d ",(ans>>j)); }}
贴份代码跑
#include <iostream>#include <stdio.h>#include <string.h>#include <stack>#include <queue>#include <map>#include <set>#include <vector>#include <math.h>#include <algorithm>using namespace std;#define LL long long#define INF 0x3f3f3f3fconst double pi = acos(-1.0);const int mod = 1e9+7;const int N=1e2+10;int getch(char c){ if(c>='0'&&c<='9') return c-'0'; if(c>='A'&&c<='Z') return c-'A'+10; if(c>='a'&&c<='z') return c-'a'+36; if(c=='-') return 62; if(c=='_') return 63;}int main(){ string ss; cin>>ss; LL ans=1; LL x; for(int i=0;i<ss.size();i++) { x=getch(ss[i]); for(int j=0;j<6;j++) { if(!((x>>j)&1)) ans=ans*3%mod; } } cout<<ans<<endl;}
0 0
- Codeforces Round #355 (Div. 2)C - Vanya and Label
- Codeforces Round #355 (Div. 2)C. Vanya and Label
- Codeforces Round #355 (Div. 2)C. Vanya and Label
- Codeforces Round #355 (Div. 2) C. Vanya and Label
- ★【16.6.2】Codeforces Round #355 (Div. 2) C. Vanya and Label
- Codeforces Round #355 (Div. 2) C. Vanya and Label (打表+字符串)
- Codeforces Round #355 (Div. 2) C Vanya and Label 快速幂取模
- codeforces 355(Div 2)C. Vanya and Label(思维,预处理)
- Codeforces Round #280 (Div. 2) C. Vanya and Exams
- C. Vanya and Scales(Codeforces Round #308 (Div. 2))
- Codeforces Round #308 (Div. 2) C. Vanya and Scales
- Codeforces Round #308 (Div. 2) C.Vanya and Scales
- Codeforces Round #308 (Div. 2) C. Vanya and Scales dfs
- Codeforces Round #355 (Div. 2) A. Vanya and Fence(水题)
- Codeforces Round #355 (Div. 2) B. Vanya and Food Processor
- Codeforces Round #355 (Div. 2) D. Vanya and Treasure
- Codeforces Round #355 (Div. 2)- Vanya and Fence(模拟)
- Codeforces Round #355 (Div. 2) D. Vanya and Treasure
- Linux-VMware安装使用
- 手把手教你解析AXML
- struts2构建的web项目中配置文件struts.xml应该放在哪? [
- 计算机图形学基础(七) 从顶点到片元1(裁剪,光栅,消除等)
- web页面流显示图片
- Codeforces Round #355 (Div. 2)C - Vanya and Label
- 200行python代码实现一个类似django的简单模板引擎
- Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
- RxJava入门之生命周期管理
- 欢迎使用CSDN-markdown编辑器
- 2016.07.06杂题选讲(JohnBer)完结小记
- [codevs3492] 细胞个数
- android .9.png ”点9” 图片制作方法,附上注释
- Glide + CircleImageView 实现图片加载