fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
Success #stdin #stdout 0.09s 54668KB
stdin
1 (defun fortunecookie ()
2 (princ" 尚 南 :")
3 (let* ((id (read-line))
4 (seed (reduce (lambda(a b)(+ a b)) (map'list #'char-code id)))
5 (result (nth (mod(+ seed 2025-06-17)5)
6 '(" 大 吉! 挑 戦 を 続 け よ う"
7" 中 吉! 今 日 は 集 中 の 日"
8" 小 吉! ま ず は 一 歩"
9"吉! 粘 り 勝 ち を 目 指 そ う"
10" 凶 … で も 明 日 が あ る!"))))
11 (format t " 結 果 :~A~%" result)))
12 (fortunecookie)
stdout
Standard output is empty