Skip to content

Instantly share code, notes, and snippets.

@Aaron-212
Aaron-212 / superFactorial.c
Created December 17, 2023 14:17
超级无敌叼的阶乘计算,使用命令行输入,能算到114514!哦
#include <stdio.h>
#define MAX_LENGTH 1048576
int superMultiplication(int a, int *b, int bSize) {
int carry = 0;
for (int i = 0; i < bSize; i++) {
int temp = b[i] * a + carry;
b[i] = temp % 10;
carry = temp / 10;
@Aaron-212
Aaron-212 / gist:5acce891498ae2b5b0e1bfe6ad045795
Last active December 17, 2023 14:16
Mac被中文输入法卡死了?用这个(不需要了,macOS14.3修复)
pgrep -f "/System/Library/Input Methods/SCIM.app/Contents/PlugIn" | xargs kill -HUP