输出‘No!!!’有40分!!!

P1618 三连击(升级版)

EricZeng @ 2017-05-28 21:26:00

begin
  write('No!!!');
  writeln;
  writeln;
end.

by Tsukimaru @ 2017-05-30 13:41:41

那有什么用……试炼场任务要全AC的……orz


by 蒟蒻lxy @ 2017-06-08 21:52:37

eeeeeeeeee


by 徐封离 @ 2017-06-08 22:33:35

有道理,但做题的目标是AC啊


by RagnaLP @ 2017-06-10 17:31:17

666


by return @ 2017-06-24 14:49:04

当然啦,因为无解的可能性也有啊


by zhousirui070502 @ 2017-06-27 14:50:08

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,h,j;
    int A,B,C,ok=0;
    cin>>A>>B>>C;
    for(a=1;a<=1000;a++)
    {
        if(a%A==0)
        {
            b=a/A*B;
            c=a/A*C;
            h=(a/100)+(a/10%10)+(a%10)+(b/100)+(b/10%10)+(b%10)+(c/100)+(c/10%10)+(c%10);
            j=(a/100)*(a/10%10)*(a%10)*(b/100)*(b/10%10)*(b%10)*(c/100)*(c/10%10)*(c%10);
            if((h==45)&&(j==362880))
            {
                ok=1;
                printf("%d %d %d\n",a,b,c);
            }
        }
    }
    if(ok!=1)
   cout<<"No!!!"<<endl;;
    return 0;
}

by zhousirui070502 @ 2017-06-27 14:50:40

AC啦……


|