• 2024-04-1012-hour clock
    Createasetofcounterssuitableforuseasa12-hourclock(witham/pmindicator).Yourcountersareclockedbyafast-runningclk,withapulseonenawheneveryourclockshouldincrement(i.e.,oncepersecond).resetresetstheclockto12:00AM.pm
  • 2024-03-16十进制与BCD码互相转换
    BCD到十进制:#include<stdio.h>intmain(){ intdecimalNumber=35;//要转换为BCD码的十进制数 inttens=decimalNumber/10; intones=decimalNumber%10; //将十位和个位转换为BCD码 charbcd=(tens<<4)|ones; //00110000 printf("十进制数%
  • 2023-11-01module 'tensorflow.compat.v2' has no attribute '__internal__
    fromkeras.utilsimportto_categorical module'tensorflow.compat.v2'hasnoattribute'__internal__fromkeras.utilsimportto_categorical $pythontesterr.py UsingTensorFlowbackend.Traceback(mostrecentcalllast): File"testerr.
  • 2023-08-12数字变形
    此题目来源于LZOI题目传送门#include<iostream>usingnamespacestd;intmain(){intn;cin>>n;inthundreds=n/100;inttens=(n/10)%10;intones=n%10;inttransformed=ones*100+tens*10+hundreds;
  • 2023-08-12数字求和
    此题目来源于LZOI题目传送门#include<iostream>usingnamespacestd;intmain(){intn;cin>>n;intones=n%10;inttens=(n/10)%10;inthundreds=n/100;intsum=ones+tens+hundreds;cout<<sum&