AIZU ONLINE JUDGEを用いたエクストリームプログラミングです。
是非@orekyuuさんにやってほしいです。
ルールに追加するとよさそうな内容がありましたら教えてください。
# -*- coding: utf-8 -*- | |
Plugin.create :josou do | |
onupdate do |s, ms| | |
ms.each do |m| | |
if Time.now - m[:created] < 5 and m.message.to_s.include?("女装") | |
Service.primary.post(:message => "女装男子とセックスしたいよー(っ>ω<c)☆.° 女装ーーー(っ>ω<c)☆.°女装男子と(っ>ω<c)☆.°セックスがしたいの(っ>ω<c)☆.°ウーーー(っ>ω<c)☆.°WOOOOO(っ>ω<c)☆.°じょそ!!う!!!女装男子とワンチャンセックスハァードッコイ!!") | |
end | |
end | |
end |
AIZU ONLINE JUDGEを用いたエクストリームプログラミングです。
是非@orekyuuさんにやってほしいです。
ルールに追加するとよさそうな内容がありましたら教えてください。
package net.flourity.javatter.plugin.josou; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.nio.charset.Charset; | |
import java.util.regex.Pattern; | |
import twitter4j.Status; | |
import twitter4j.TwitterException; |
package net.flourity.lib; | |
import java.util.Arrays; | |
import java.util.NoSuchElementException; | |
public class Stack<E> | |
{ | |
private Object[] elements; | |
private int size; | |
package net.flourity.lib; | |
public class JavaSource | |
{ | |
public static String toString(int[] a) | |
{ | |
StringBuilder sb = new StringBuilder().append('{'); | |
int length = a.length; | |
for(int i=0;i<length;i++) |
package net.flourity.lib; | |
import java.io.*; | |
public class HexDump | |
{ | |
public static String hexDump(byte[] b) | |
{ | |
ByteArrayOutputStream out = new ByteArrayOutputStream(); | |
PrintStream stream = new PrintStream(out); |
class Prim<T> | |
{ | |
private Set<T> rest; | |
private List<Path<T>> paths; | |
private Set<T> already; | |
public Prim() | |
{ | |
rest = new HashSet<T>(); | |
paths = new LinkedList<Path<T>>(); |
class PolandNotation implements Calculable | |
{ | |
private transient String[] tokens; | |
private transient int index = 0; | |
private CalculableNode root; | |
public PolandNotation(String str) | |
{ | |
tokens = str.split(" "); | |
root = createNode(); |
package net.flourity.lib; | |
import java.util.*; | |
public class LinkedDeque<E> extends AbstractQueue<E> implements Deque<E>, Cloneable, java.io.Serializable | |
{ | |
private static final long serialVersionUID = -5959942865101061013L; | |
private transient final Node<E> HEADER; | |
private transient int size = 0; |