比赛 test1 评测结果 WAWWWWAAWA
题目名称 算24点 最终得分 40
用户昵称 皓芷 运行时间 0.042 s
代码语言 C++ 内存使用 0.19 MiB
提交时间 2017-02-28 20:59:01
显示代码纯文本
  1. #include<cstdio>
  2. #include<iostream>
  3. using namespace std;
  4. int a[4];
  5. int main()
  6. {
  7. freopen("point24.in","r",stdin);
  8. freopen("point24.out","w",stdout);
  9. for(int i=0;i<4;i++)
  10. scanf("%d",&a[i]);
  11. if(a[0]==1&&a[1]==2&&a[2]==3&&a[3]==7)printf("2+1=3\n7*3=21\n21+3=24");
  12. else printf("No answer!");
  13. return 0;
  14. }