P1042只能过阳历
  • 板块灌水区
  • 楼主Program_A2
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/10/26 14:33
  • 上次更新2024/10/26 14:37:30
查看原帖
P1042只能过阳历
1210103
Program_A2楼主2024/10/26 14:33

rt,传送门

实在不行给个HACK数据也行

#define I return
#define AK 0
#define IOI ;
#include "bits/stdc++.h"
using namespace std;
char a[62501];
int main(){
	int i=1,x=0,y=0;
	while(1){
		cin>>a[i];	
		if(a[i]=='E')break;
		i++;
	}
	i-=1;
	for(int l=1;l<=i;l++){
		if(a[l]=='W')x++;	
		if(a[l]=='L')y++;
		if(l%11==0){
			cout<<x<<":"<<y<<"\n";	
		    x=0;
			y=0;
		}
	}
	if(x!=0||y!=0)cout<<x<<":"<<y<<'\n';
	cout<<'\n';
	x=0;
	y=0;
	for(int l=1;l<=i;l++){
		if(a[l]=='W')x++;
		if(a[l]=='L')y++;
		if(l%21==0){
			cout<<x<<":"<<y<<'\n';
			x=0;
			y=0;
		}
	}
	if(x!=0||y!=0)cout<<x<<":"<<y;
    I AK IOI
}
2024/10/26 14:33
加载中...