Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
AC了 晒一下代码#include<stdio.h> int mod(int n,int m) { if(n<m) return n; else { int c=n/m; return n-c*m; } } void main() { int a,b; while(scanf("%d %d",&a,&b)!=EOF) printf("%d\n",mod(a,b)); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator