Shut Down!BY WangKe.Automation.WUST.2012.10,based on VC.

//*******************************************************************************************
//************************Shut Down! BY WangKe.Automation.WUST.2012.10***********************
//******************This program will only be executed effectively for once.*****************
//*************************You can't run it for the second time.*****************************
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <stdlib.h>
int main()
{
 int i = 1;
 int j = 0;
 static int c = 0;

 FILE *fp;
 fp = fopen("wangke.txt","a+");
 c = getc(fp);
 fclose(fp);

 if(c == EOF)
 {
  char combi[10];
  printf("Please input the passwords:\n");
  scanf("%s",combi);
  if(!strcmp(combi,"wangke"))
   {
    Sleep(1000);
    printf("\n\n\n\n\n\n\n\n\t\t\t   WELCOME ");
    Sleep(1000);
    printf("TO ");
    Sleep(1000);
    printf("MY ");
    Sleep(1000);
    printf("WORK.\n");
    Sleep(2*1000);
    printf("\t\t\t\t\tLoaded by WangKe\n");
    Sleep(2*1000);
    printf("\n\n\n\n\n\n");
   }
  else
  {
    printf("Password error,");
  }
  while(strcmp(combi,"wangke"))
  {
   
   
   printf("please input the password correctly:\n");
   scanf("%s",combi);  
   if(!strcmp(combi,"wangke"))
   {
    Sleep(1000);
    printf("\n\n\n\n\n\n\n\n\t\t\t   WELCOME ");
    Sleep(1000);
    printf("TO ");
    Sleep(1000);
    printf("MY ");
    Sleep(1000);
    printf("WORK.\n");
    Sleep(1000);
    printf("\t\t\t\t\tLoaded by WangKe\
     n");
    printf("\n");
    break;
   }
   else
   {
    
    if(i == 1)
    {
    printf("Do you want to crack my password?Give it up!\nyou can only have one more chance now.\n");
    Sleep(4*1000);
    }
    if(i == 2)
    {
    printf("Now you only have the last chance.\n");
    Sleep(4*1000);
    }
    if(i == 3)
    {
    printf("GAME OVER.\n");
    Sleep(2*1000);
    break;
    }
    i++;
   }
  }
  if(i<3)
  {  
   c = 8;  
   printf("Now don't close the dos window.\n");
   Sleep(1000);

   fp = fopen("wangke.txt","a+");
   putc(c,fp);
   fclose(fp);

   printf("Please wait:\n");
   Sleep(3*1000);
   printf("3\n");
   Sleep(1000);
   printf("2\n");
   Sleep(500);
   printf("1\n\n");
   Sleep(2000);
   for(j=0;j<2000;j++)
   
    printf("\n");
   
   printf("Congratulations! Your computer have now been changed.\n\n");
   Sleep(2*1000);
   printf("For the solution,\n\n");
   Sleep(2*1000);
   printf("Please visit my CSDN blog for more information.\nhttp://blog.csdn.net/Automagically\n\n");
   Sleep(2*1000);
   printf("HAPPY EVERY DAY!MY DARLING!\n\n");
   Sleep(2*1000);
   system("shutdown/r");
   Sleep(59*1000);
  }
 }
 else
 {
  printf("Please visit my CSDN blog for more information.\nhttp://blog.csdn.net/Automagically\n\n");
  Sleep(8000);
  system("shutdown/r");
  Sleep(59*1000);
 }
 return 0;
}

根据引用内容,当提示"The code use cpu!!!"时,这意味着代码使用了CPU资源。CPU资源的使用是受一系列因素限制的。首先,objective_duration_limit是一个上限,它与区块的CPU限制、单个交易的CPU限制、交易头的配置以及用户可用的CPU限制有关。对于用户而言,能够改变的只有通过质押获得的CPU时间。用户可用的CPU时间是有限的。因此,如果代码使用了大量的CPU资源,可以通过以下几个方法来解决: 1. 将交易提交到更快的RPC节点等待全网可用的CPU资源增加。通过选择配置高、CPU空闲的RPC节点,可以获得更快的CPU资源。 2. 增加账户的可用CPU资源。这可以通过错峰分配CPU资源,即在高峰期之外增加CPU资源的分配。 3. 增加质押比例,以获得更多的CPU使用权重。通过质押更多的EOS在CPU资源上,可以获得更多的CPU使用权重。 综上所述,当代码使用了CPU资源时,可以通过选择更快的RPC节点、增加账户的可用CPU资源和增加质押比例来解决CPU资源的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [EOS: billed CPU time ( us) is greater than the maximum billable CPU time for the transaction ( us)](https://blog.csdn.net/wangke0809/article/details/104138651)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [undefined](undefined)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值