1 solutions
-
0
C :
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d",a / b,a % b); return 0; }
C++ :
#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; int c=a/b; int d=a%b; cout<<c<<" "<<d<<endl; }
Python :
a,b=map(int,input().split()) print(a//b,a%b)
- 1
Information
- ID
- 10850
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By