QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#100313#4653. Painting Gamejcccc#WA 25ms3444kbC++17638b2023-04-25 15:54:242023-04-25 15:54:27

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-04-25 15:54:27]
  • 评测
  • 测评结果:WA
  • 用时:25ms
  • 内存:3444kb
  • [2023-04-25 15:54:24]
  • 提交

answer

#include<bits/stdc++.h>
#define x first
#define y second
#define endl '\n'
#define LL long long
#define ios ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
using namespace std;
const LL N=2000010,MOD=1e18;
typedef pair<int,int> PII;
LL n,m1,m2,t;
LL cnt[N];
int main()
{
	ios;
	cin>>t;
	while(t--){
		string s;
		cin>>n>>s;
		if(s=="Alice"){
			int ans=n/5*2;
			int x=n%5;
			if(x==0) cout<<ans<<endl;
			else if(x<=3) cout<<ans+1<<endl;
			else cout<<ans+2<<endl;
		}else{
			int ans=n/5*2;
			int x=n%5;
			if(x==0) cout<<ans<<endl;
			else if(x<=2) cout<<ans+1<<endl;
			else cout<<ans+2<<endl;
		}
	}
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 25ms
memory: 3444kb

input:

100000
202887890 Bob
212404006 Bob
127716000 Alice
334251217 Bob
379690549 Alice
450610130 Alice
946907168 Bob
29213358 Bob
112883509 Bob
794872736 Bob
403671135 Alice
714834265 Bob
540986736 Bob
935406639 Bob
756411692 Bob
182091395 Alice
662716337 Alice
217541941 Alice
190231925 Bob
705864412 Alic...

output:

81155156
84961603
51086400
133700487
151876220
180244052
378762868
11685344
45153404
317949095
161468454
285933706
216394695
374162656
302564677
72836558
265086535
87016777
76092770
282345765
359629489
232316253
83731933
107097851
97373816
297435313
378025931
318028710
148156095
163603476
214147972
...

result:

wrong answer 1st lines differ - expected: '86951953', found: '81155156'