結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー cielciel
提出日時 2015-11-10 18:01:29
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 536 ms / 1,000 ms
コード長 411 bytes
コンパイル時間 12,131 ms
コンパイル使用メモリ 428,960 KB
実行使用メモリ 62,220 KB
最終ジャッジ日時 2024-04-30 05:34:01
合計ジャッジ時間 14,201 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 536 ms
62,220 KB
testcase_01 AC 516 ms
61,980 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>){
         ^

ソースコード

diff #

import java.util.Scanner;
import java.io.*;
fun main(args: Array<String>){
	val SIZE=9999999
	val z=ByteArray(SIZE)
   	val p=Runtime.getRuntime().exec(arrayOf("ruby","-e","print gets.split.map(&:to_i).reduce(:+),\" \",gets;"));
	p.getOutputStream().write(z,0,System.`in`.read(z,0,SIZE))
	p.getOutputStream().close()
   	val sc=Scanner(p.getInputStream())
	while(sc.hasNext())System.out.println(sc.nextLine())
}
0