UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#211925#3815. 种树seven_0701ms1204kbC++307b2024-10-13 08:39:122024-10-13 12:51:07

answer

#include<bits/stdc++.h>
#define ll long long
#define endl "\n"
using namespace std;
int t;
int main(){
//	freopen(".in", "r", stdin);
//	freopen(".out", "w", stdout);
	cin >> t;
	while(t--){
		ll n; cin >> n;
		if(n%3==2)	cout<<n/3*2+1 << endl;
		else	cout << n/3*2 << endl;
	}
	return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 1204kb

input:

2 2 1

output:

1
0

result:

wrong answer 1st numbers differ - expected: '4', found: '1'

Test #2:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

2 3 2

output:

2
1

result:

wrong answer 1st numbers differ - expected: '8', found: '2'

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

4 4 2

output:

2
1
1
1

result:

wrong answer 1st numbers differ - expected: '96', found: '2'

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 1204kb

input:

4 4 5

output:

2
3
3
3

result:

wrong answer 1st numbers differ - expected: '304', found: '2'

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

3 4 3

output:

2
2
2

result:

wrong answer 1st numbers differ - expected: '84', found: '2'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

3 5 2

output:

3
1
1

result:

wrong answer 1st numbers differ - expected: '83', found: '3'

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

3 5 3

output:

3
2
2

result:

wrong answer 1st numbers differ - expected: '215', found: '3'

Test #8:

score: 0
Wrong Answer
time: 1ms
memory: 1204kb

input:

3 5 4

output:

3
2
2

result:

wrong answer 1st numbers differ - expected: '276', found: '3'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 1204kb

input:

3 5 5

output:

3
3
3

result:

wrong answer 1st numbers differ - expected: '174', found: '3'

Test #10:

score: 0
Wrong Answer
time: 0ms
memory: 1200kb

input:

4 3 5

output:

2
3
3
3

result:

wrong answer 1st numbers differ - expected: '18', found: '2'