Skip to content

Instantly share code, notes, and snippets.

View hsuan1117's full-sized avatar
🥰

Hsuan hsuan1117

🥰
View GitHub Profile
#include<stdio.h>
#include<stdlib.h>
int n,m;
int M[105][105];
int dx[4] = {1,-1,0,0};
int dy[4] = {0,0,1,-1};
typedef struct {
int x;
import os
from flask import Flask, request, abort
from dotenv import load_dotenv
from linebot.v3 import (
WebhookHandler
)
from linebot.v3.exceptions import (
InvalidSignatureError
)
`timescale 1ns / 1ps
module clock_divider(clk,clk_div);
input clk;
output clk_div;
parameter n = 25;
reg[n-1:0]num;
wire[n-1:0]next_num;
always@(posedge clk)begin
num <= next_num;
end
class Shape {
constructor(type, values) {
this.type = type
this.values = values
}
getArea() {
let area = 0
switch(this.type) {
case "Rectangle":
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="flex flex-col gap-2 p-2">
<div class="flex justify-between">
<!DOCTYPE html>
<html lang="zh-Hant-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>計算機</title>
</head>
<body class="flex flex-col justify-center items-center min-w-screen min-h-screen">
<div id="result">0</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<title>Title</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>Hello</h1>
<input type="text" name="q" placeholder="搜尋字串"> <!-- q=xxxx -->
`timescale 1ns/1ps
`define CYCLE 10
`define END_CYCLES 50000
`define SEQ_LEN 4
`define ANS_LEN 31
module tb;
reg clk;
reg rst_n;
reg start;
reg valid;
#include<iostream>
#include<set>
using namespace std;
signed main() {
string method;
multiset<int> s;
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);