QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#507113 | #8635. 圆 | LGMaster | 20 | 0ms | 3876kb | C++14 | 628b | 2024-08-06 11:04:59 | 2024-08-06 11:04:59 |
Judging History
answer
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<climits>
//#define int long long
using namespace std;
const int N=5005,mod=998244353;
int n,ans;
inline int read(){
int s=0,f=1;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
s=(s<<3)+(s<<1)+(ch&15);
ch=getchar();
}
return s*f;
}
int main(){
n=read();
if(n<=3) puts("1"),exit(0);
else if(n<=10){
ans=n/3;
if(ans*3!=n) ans++;
printf("%lld",ans);
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 10
Accepted
time: 0ms
memory: 3648kb
input:
3
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 10
Accepted
time: 0ms
memory: 3876kb
input:
4
output:
2
result:
ok 1 number(s): "2"
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3728kb
input:
6
output:
2
result:
wrong answer 1st numbers differ - expected: '299473309', found: '2'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3820kb
input:
10
output:
4
result:
wrong answer 1st numbers differ - expected: '487238321', found: '4'
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 3592kb
input:
100
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 3660kb
input:
200
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 3620kb
input:
500
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 3660kb
input:
4798
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 3604kb
input:
4999
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 3504kb
input:
5000
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements