Accepted
Code
//sol 5369666174
#include<bits/stdc++.h>
using namespace std;
#define mxx 200005
#define ll long long
#define answ ((out)?"YES":"NO")
#define endl '\n'
void solve(int tc){
int n;
cin>>n;
int out=n/3;
if(n%3){
out++;
}
cout<<out<<endl;
}
void sub_run(){
#ifndef ONLINE_JUDGE
freopen("inp.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif // ONLINE_JUDGE
}
int main(){
//ios_base::sync_with_stdio(false);
//cin.tie(NULL);
int t=1;
// sub_run();
// cin>>t;
for(int i=1;i<=t;i++)solve(i);
}
Information
- Submit By
- Type
- Submission
- Problem
- P1106 too easy or three easy
- Contest
- Brain Booster #6
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-10-03 15:33:38
- Judged At
- 2024-12-17 11:36:52
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 540.0 KiB