CF125A Measuring Lengths in Baden 题解 Zhoumy · 2021-01-15 18:35:44 · 题解 按照题意把要四舍五入得当一类,不要的当另一类,进行判断。 #include<bits/stdc++.h> using namespace std; long long n; int main(){ cin>>n; if(n%3==2)cout<<(n/3+1)/12<<" "<<(n/3+1)%12; else cout<<n/3/12<<" "<<n/3%12; return 0; }