哪里错了这道题问了一个多月了还是八十分。。。

P6188 [NOI Online #1 入门组] 文具订购

bird_秒切橙题 @ 2020-05-24 11:37:59

#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    if(n==0)
    {
        cout<<"0 0 0";
    }
    if(n<=2||n==5)
    {
        cout<<-1;
        return 0;
    }
    int a=n/14;
    n%=14;
    int b=a,c=a;
    if(n%3==1){
        b++;
        c+=n/3-1;
    }
    else if(n%3==2){
        b+=2;
        c+=n/3-2;
    }
    else
        c+=n/3;
    cout<<a<<" "<<b<<" "<<c;
    return 0;
}

by _tommysun_ @ 2020-05-24 11:58:31

@small_bird ssd怎么这么烦啊


by donghanwen1225 @ 2020-05-24 11:58:54

直接ctrl+c就CE


by bird_秒切橙题 @ 2020-05-24 11:59:33

CE是啥


by donghanwen1225 @ 2020-05-24 12:00:01

呃,你问这个问题是认真的吗


by k3v1n070828 @ 2020-05-24 12:00:09

这个small_bird看来得了反色视觉症,把橙色看成蓝色了(


by donghanwen1225 @ 2020-05-24 12:00:17

CE=Compile Error=编译错误


by _tommysun_ @ 2020-05-24 12:00:40

@small_bird 百度很难吗?!


by _tommysun_ @ 2020-05-24 12:01:03

@small_bird 你以为你是谁?天王老子吗?凭什么我们要告诉你这告诉你那啊?!


by k3v1n070828 @ 2020-05-24 12:01:06

@small_bird :CE是啥

请在P1001提交下面代码:

kajhsybksjhdvbkhdbkhvs
'xvskvkfhwebkhjksvhbkjhzbk sd
ccafcsdjhvbcksdhjcbkhsdbckhsdbkhcz
azdscbszbkhjabchzsdbkhabdsc

by donghanwen1225 @ 2020-05-24 12:03:12

等等,我发现,你这程序第三组样例也过不了吧


上一页 | 下一页