Skip to content

Instantly share code, notes, and snippets.

View hsuan1117's full-sized avatar
🥰

Hsuan hsuan1117

🥰
View GitHub Profile
@hsuan1117
hsuan1117 / 2word.txt
Last active January 11, 2019 11:11
RNDSA Select Country
<select>
<option value="AF">Afghanistan</option>
<option value="AX">Åland Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
@hsuan1117
hsuan1117 / 仙女筆記程式1
Last active September 5, 2019 15:34
仙女筆記
仙女筆記
@hsuan1117
hsuan1117 / 123.cpp
Last active November 6, 2019 05:37
#include <iostream>
using namespace std;
int main() {
string a , b;
int N;
cin >> N >> a >> b ;
bool will = true;
for(int i=0;i<N;i++) {
if(a[i]=='0'){
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<div style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; text-align: left;">
<img border="0" height="150" src="https://raw.githubusercontent.com/YisBlog/Yi-s-Blog/master/image/404-robot.png" /></div>
<span style="color: #cc0000; font-size: 74px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
<div style="text-align: center;">
<span style="color: #cc0000; font-size: 74px;"><span style="text-align: left;">404</span></span></div>
<br />
</div>
<div style="text-align: center;">
const FIREBASE_MEMBERSYSTEM_VERSION="1.0.0"
class FirebaseMemberSystem {
constructor(onLoginDetected){
firebase.auth().languageCode = 'zh-TW';
this.AuthedUser=0
this.errorCodes={
"auth/account-exists-with-different-credential":"帳號已存在",
"auth/email-already-in-use":"電子郵件已被使用",
"":""
function result(text) {
document.getElementById("EvalResultSandBox").innerText = text;
}
function evalCode(code) {
if(code.from == "user_generated"){
alert("Prevent XSS (Reason: user_generated code)")
return ;
}else if(code.from == "unknown"){
alert("Prevent XSS (Reason: unknown code)")
return ;
#include<bits/stdc++.h>
using namespace std;
int main(){
string data;
unsigned long long result = 0;
int from , to ;
cin >> from >> to >> data;
if(from != 10){
for(int i=data.length()-1; i>=0;i--){
#include<iostream>
using namespace std;
void A(int x,int y){
if(x>=y){
A(x/y,y);
}
cout<<x%y;
}
#include<bits/stdc++.h>
#define REP(n) for(int i = 0; i < n; i++)
#define _REP(n) for(int j = 0; j < n; j++)
typedef unsigned long long ull;
using namespace std;
char OR(char a, char b) {
return (a==b=='0'?'0':'1');
}
#include<bits/stdc++.h>
using namespace std;
bool can[10000000];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
memset(can,0,sizeof(can));