[TOC] 上面那個是自動生成的文章目錄
嗨嗨,這個是 hexo 預設的第一篇文章啦,基本上就是些使用教學,不過我也不打算刪掉他啦,留著做紀念也不錯。才不是因為我現在文章太少了
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
$ hexo new "My New Post"
$ xxx
More info: Writing
Run server
$ hexo server
More info: Server
Generate static files
$ hexo generate
More info: Generating
Deploy to remote sites
$ hexo deploy
More info: Deployment
#include<stdio.h>
int main() {
printf("hello world"); /*c 語言怎麼好像會顯示失敗嗚嗚*/
return 0;
}
int main() {
printf("hello world"); /*c 語言怎麼好像會顯示失敗嗚嗚*/
return 0;
}
fun main () {
println("hello") /* Kotlin */
}
嗨嗨test
#define true 1
#define false 0
#define bool int
#include<stdio.h>
#include<math.h>
bool division(long a, long b) {
if (b == 0 || b == 1 || a % b != 0) return false;
if (a / b == 1 && a % b == 0) {
return true;
}
return division(a/b, b);
}
int main () {
long a = 0, b = 0, power = 0;
while(scanf("%ld %ld", &a, &b) != EOF) {
if (!division(a, b)) {
printf("Boring!\n");
} else if (division(a,b)){
power = 0;
for (int i = 0; i < a; i++) {
if ((long)round(pow((double)b, (double)i)) == a) {
power = i;
break;
}
}
for (int i = power; i > 0; i--) {
printf("%d ", (int)round(pow(b, i)));
}
printf("1\n");
}
}
return 0;
}