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 |
狂哭!!暴水!!#include <stdio.h> void main() { int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(a>=0) printf("%d\n",a%b); else printf("%d\n",a%b+b); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator