讨论 / 十分恶心的程序
ScarletFirebolt6056 2015-07-24 12:30:03
点我顶贴 收藏 删除
#include<cmath>

#include<math.h>

#include<ctype.h>

#include<algorithm>

#include<bitset>

#include<cassert>

#include<cctype>

#include<cerrno>

#include<cfloat>

#include<ciso646>

#include<climits>

#include<clocale>

#include<complex>

#include<csetjmp>

#include<csignal>

#include<cstdarg>

#include<cstddef>

#include<cstdio>

#include<cstdlib>

#include<cstring>

#include<ctime>

#include<cwchar>

#include<cwctype>

#include<deque>

#include<exception>

#include<fstream>

#include<functional>

#include<iomanip>

#include<ios>

#include<iosfwd>

#include<iostream>

#include<istream>

#include<iterator>

#include<limits>

#include<list>

#include<locale>

#include<map>

#include<memory>

#include<new>

#include<numeric>

#include<ostream>

#include<queue>

#include<set>

#include<sstream>

#include<stack>

#include<stdexcept>

#include<streambuf>

#include<string>

#include<typeinfo>

#include<utility>

#include<valarray>

#include<vector>

#include<string.h>

#include<stdlib.h>

#include<stdio.h>

#define LL long long

using namespace std;

char x;

int a11[1000],b11[1000],a21[1000],b21[1000],count11,count21,s11,s21;

int main(){

cin>>x;

s11=1;

s21=1;

while(x!='E'){

if(x=='W'){

if(count11<11){

count11++;

a11[s11]++;

}

else if(count11==11){

count11=1;

s11++;

a11[s11]++;

}

if(count21<21){

count21++;

a21[s21]++;

}

else if(count21==21){

count21=1;

s21++;

a21[s21]++;

}

}

if(x=='L'){

if(count11<11){

count11++;

b11[s11]++;

}

else if(count11==11){

count11=1;

s11++;

b11[s11]++;

}

if(count21<21){

count21++;

b21[s21]++;

}

else if(count21==21){

count21=1;

s21++;

b21[s21]++;

}

}

cin>>x;

}

for(int i=1;i<=s11;i++){

cout<<a11[i]<<":"<<b11[i]<<endl;

}

cout<<"\n";

for(int i=1;i<=s21;i++){

cout<<a21[i]<<":"<<b21[i]<<endl;

}

return 0;

}

#1 swm@2015-07-26 11:35:41
回复 删除
开的好多库都没用到
#2 无名侠@2015-07-27 12:21:24
回复 删除
加这么多头文件有病吗?
#3 xjwwd@2015-08-05 15:00:44
回复 删除
加这么多头文件你有问题否?
#4 ScarletFirebolt6056@2015-08-07 12:42:49
回复 删除
都是复制的
#5 ScarletFirebolt6056@2015-08-09 19:08:57
回复 删除
我从来不背头文件
#6 夸父逐日@2015-10-18 21:57:35
回复 删除
不需要那么多头文件
#7 zcq784951623@2015-10-20 16:58:35
回复 删除
.......
#8 159753abclife@2015-10-22 19:23:50
回复 删除
加那么多#include有必要吗= =

.......这么大一长串- -

#9 Magna_Medivh@2017-08-01 22:41:49
回复 删除
教你个东西:#include <bits/stdc++.h>包含了所有头文件,亲测NOIP可以,省选、NOI没敢用。。
#10 陈宣昊@2017-10-20 21:16:47
回复 删除
#include <bits/stdc++.h>================================================#include<cmath>

#include<math.h>

#include<ctype.h>

#include<algorithm>

#include<bitset>

#include<cassert>

#include<cctype>

#include<cerrno>

#include<cfloat>

#include<ciso646>

#include<climits>

#include<clocale>

#include<complex>

#include<csetjmp>

#include<csignal>

#include<cstdarg>

#include<cstddef>

#include<cstdio>

#include<cstdlib>

#include<cstring>

#include<ctime>

#include<cwchar>

#include<cwctype>

#include<deque>

#include<exception>

#include<fstream>

#include<functional>

#include<iomanip>

#include<ios>

#include<iosfwd>

#include<iostream>

#include<istream>

#include<iterator>

#include<limits>

#include<list>

#include<locale>

#include<map>

#include<memory>

#include<new>

#include<numeric>

#include<ostream>

#include<queue>

#include<set>

#include<sstream>

#include<stack>

#include<stdexcept>

#include<streambuf>

#include<string>

#include<typeinfo>

#include<utility>

#include<valarray>

#include<vector>

#include<string.h>

#include<stdlib.h>

#include<stdio.h>

查看更多回复
提交回复