Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115660 李钧皓 05买水果 C++ Accepted 0 MS 268 KB 308 2025-04-02 14:50:30

Tests(1/1):


Code:

#include <iostream> #include <cstdio> using namespace std; int main(){ int a=5,b=8,c=12,a1,a2,b1,b2,c1,c2; float p=(a+b+c)/3.0; printf("%.3f\n",p); a1=39/5; a2=39%5; b1=39/8; b2=39%8; c1=39/12; c2=39%12; printf("%d %d\n",a1,a2); printf("%d %d\n",b1,b2); printf("%d %d\n",c1,c2); }