Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
1349 徐杨奕 五个小朋友分巧克力 C++ 解答错误 20 0 MS 252 KB 460 2019-10-07 16:17:22

Tests(1/5):


#include<iostream> int main(){ int a,b,c,d,e,n; scanf("%d",&n); a=n;b=n;c=n;d=n;e=n; e=e+(a-a/2)+(b-b/2)+(c-c/2)+(d-d/2);a=a/2;b=b/2;c=c/2;d=d/2; d=d+(a-a/2)+(b-b/2)+(c-c/2)+(e-e/2);a=a/2;b=b/2;c=c/2;e=e/2; c=c+(a-a/2)+(b-b/2)+(d-d/2)+(e-e/2);a=a/2;b=b/2;d=d/2;e=e/2; b=b+(a-a/2)+(c-c/2)+(d-d/2)+(e-e/2);a=a/2;c=c/2;d=d/2;e=e/2; a=a+(b-b/2)+(c-c/2)+(d-d/2)+(e-e/2);b=b/2;c=c/2;d=d/2;e=e/2; printf("%d %d %d %d %d",a,b,c,d,e); return 0; }


测评信息: