提出 #2253403


ソースコード 拡げる

Integer parseInt(String? s,Integer default=-1){
	value result=Integer.parse(s else "");
	if(is Integer result){return result;}
	return default;
}
String readLine(){
	return process.readLine() else "";
}

shared void main(){
	value a=parseInt(readLine());
	value arr=readLine().split().sequence();
	value b=parseInt(arr[0]);
	value c=parseInt(arr[1]);

	print((a+b+c).string+" "+readLine());
	process.exit(0);
}

提出情報

提出日時
問題 PracticeA - Welcome to AtCoder
ユーザ leafmoon
言語 Ceylon (1.2.1)
得点 0
コード長 429 Byte
結果 TLE
実行時間 2114 ms
メモリ 122324 KB

コンパイルエラー

./Main.ceylon:2: error: method or attribute does not exist: 'parse' in type 'Integer' (did you mean 'compare'?)
	value result=Integer.parse(s else "");
	                     ^
./Main.ceylon:3: error: could not determine type of function or value reference: 'result'
	if(is Integer result){return result;}
	              ^
./Main.ceylon:3: error: could not determine type of function or value reference: 'result'
	if(is Integer result){return result;}
	              ^
./Main.ceylon:17: warning: expression has type 'Nothing'
	process.exit(0);
	^
3 errors
1 warning
Note: Created module default
ceylon compile: There were 3 errors

ジャッジ結果

セット名 All
得点 / 配点 0 / 100
結果
TLE × 7
セット名 テストケース
All 00_rnd_01.txt, 00_rnd_02.txt, 00_rnd_03.txt, 00_rnd_04.txt, 00_rnd_05.txt, 00_sample_1.txt, 00_sample_2.txt
ケース名 結果 実行時間 メモリ
00_rnd_01.txt TLE 2107 ms 113424 KB
00_rnd_02.txt TLE 2110 ms 111420 KB
00_rnd_03.txt TLE 2111 ms 122324 KB
00_rnd_04.txt TLE 2114 ms 90276 KB
00_rnd_05.txt TLE 2110 ms 113696 KB
00_sample_1.txt TLE 2110 ms 111744 KB
00_sample_2.txt TLE 2110 ms 94232 KB