ZOJ 3610 Yet Another Story of Rock-paper-scissors
来源:互联网 发布:h3c网络工程师证书知乎 编辑:程序博客网 时间:2024/06/07 04:01
题目链接:http://www.icpc.moe/onlinejudge/showProblem.do?problemCode=3610
思路:随便推一下会知道肯定是第二个人赢
ac代码:
#include<stdio.h>#include<math.h>#include<string.h>#include<stack>#include<set>#include<queue>#include<vector>#include<iostream>#include<algorithm>#define MAXN 1010000#define LL long long#define ll __int64#define INF 0xfffffff#define mem(x) memset(x,0,sizeof(x))#define PI acos(-1)using namespace std;int gcd(int a,int b){return b?gcd(b,a%b):a;}LL powmod(LL a,LL b,LL MOD){LL ans=1;while(b){if(b%2)ans=ans*a%MOD;a=a*a%MOD;b/=2;}return ans;}//headchar a[1010],b[1010],c[1010];int main(){ int t; scanf("%d",&t); while(t--) { scanf("%s%s%s",a,b,c); printf("%s will survive\n",b); } return 0;}
0 0
- zoj 3610 Yet Another Story of Rock-paper-scissors
- ZOJ 3610 Yet Another Story of Rock-paper-scissors
- ZOJ 3610 Yet Another Story of Rock-paper-scissors
- ZOJ 3610 Yet Another Story of Rock-paper-scissors
- ZOJ 3610 Yet Another Story of Rock-paper-scissors
- ZOJ 3610Yet Another Story of Rock-paper-scissors
- zoj 3610 Yet Another Story of Rock-paper-scissors 忽悠。。
- Yet Another Story of Rock-paper-scissors
- K - Yet Another Story of Rock-paper-scissors
- Yet Another Story of Rock-paper-scissors(水题)
- ZOJ3610-Yet Another Story of Rock-paper-scissors
- K. Yet Another Story of Rock-paper-scissors
- prepare for the provincial time --9.1-- Yet Another Story of Rock-paper-scissors
- 省赛热身赛之——Yet Another Story of Rock-paper-scissors
- 2014ACM集训13级PK赛3-Yet Another Story of Rock-paper-scissors
- 4952. Another Rock-Paper-Scissors Problem
- Sicily 4952. Another Rock-Paper-Scissors Problem
- CF100015A - Another Rock-Paper-Scissors Problem
- 归并排序 -- 高效、稳定的排序算法
- poj1023 进制
- BZOJ3926-[Zjoi20150]诸神眷顾的幻想乡
- 多线程
- JDK1.8源码中的编程习惯
- ZOJ 3610 Yet Another Story of Rock-paper-scissors
- axis2开发webservice之编写Axis2模块(Module)
- Sam 数(矩阵乘法)
- curl 中post 传参数给server
- Maperitive Mapnik style rule
- Codeforces Round #352 (Div. 2)-B. Different is Good(模拟)
- Java之properties文件读取
- 3D-Touch
- javascript:js脚本的3中引入方法