This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 | |
puts (1..(gets.to_i)).map{gets.to_i}.reduce(0,:+) | |
#2 | |
puts (1..(gets.to_i)).map{ | |
t,s,p = gets.split(' ').map{|s| s.to_i} | |
t <= s ? 0 : (t-s)*p | |
}.reduce(0, :+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mineflayer = require('mineflayer'); | |
var bot = mineflayer.createBot({ | |
host: "mobile.csie.ntu.edu.tw", | |
username: "jomican_bot" | |
}); | |
bot.on('chat', function(username, message) { | |
var words, name, item, amount, destination; | |
if (message === 'debug') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mineflayer = require('mineflayer'), | |
repl = require("repl"); | |
var bot = mineflayer.createBot({ | |
host: "SERVER_ADDRESS", | |
username: "BOT_NAME" | |
}); | |
bot.on('spawn', function(){ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int32_t Type | |
byte[] data | |
TYPE_INT | |
int32_t data | |
TYPE_LONG | |
int64_t data | |
TYPE_STRING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import action | |
import information | |
import random | |
import copy | |
import threading | |
from item import * | |
class actionAI(action.Action): | |
def init(self, info): | |
self.state=STATE_COLLECT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
把以下的東西存成bookmark 然後在填答表格那頁點下去 然後Magic!! | |
javascript:y=document.forms['frm1'].elements;for(var j=1;j<=28;j++){a=y['ans'+j];if(a){var c=a.length;if(c==undefined){a.checked=(a.value=='3')}for(var i=0;i<c;i++){a[i].checked=false;if(a[i].value=='3'){a[i].checked=true}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perpetuitues | |
永續年金 | |
annuities | |
年金 | |
Future Value (FV) | |
終值 | |
Present Value | |
現值 | |