0
2
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
葛子睿
新手守护
新手守护
- #include<iostream>
- using namespace std;
- int main(){
- int a,b,n;
- cin>>a>>b>>n;
- cout<<int(a/n)+int(b/n)<<" "<<a%n+b%n<<endl<<int((a+b)/n)<<" "<<(a+b)%n;
- return 0;
- }
0
0
葛子睿
新手守护
新手守护
- #include<iostream>
- using namespace std;
- int main(){
- int a,b,n;
- cin>>a>>b>>n;
- cout<<int(a/n)+int(b/n)<<" "<<a%n+b%n<<endl<<int((a+b)/n)<<" "<<(a+b)%n;
- return 0;
- }
0
0
0
0
0