题解 | #珂朵莉的假动态仙人掌#
珂朵莉的假动态仙人掌
https://ac.nowcoder.com/acm/contest/18839/1043
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%3==0)cout<<n/3*2<<endl; else cout<<n/3*2+1<<endl; }
珂朵莉的假动态仙人掌
https://ac.nowcoder.com/acm/contest/18839/1043
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%3==0)cout<<n/3*2<<endl; else cout<<n/3*2+1<<endl; }
相关推荐