結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー RabbitCP
提出日時 2015-08-04 00:32:28
言語 D
(dmd 2.112.0)
コンパイル:
dmd -fPIE -m64 -w -wi -O -release -inline -I/opt/dmd/src/druntime/import/ -I/opt/dmd/src/phobos -L-L/opt/dmd/linux/lib64/ -fPIC _filename_
実行:
./Main
結果
RE  
実行時間 -
コード長 541 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,114 ms
コンパイル使用メモリ 115,200 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-07-25 21:52:39
合計ジャッジ時間 1,834 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

/*----------------------------
 作成日  :2015/08/04
 作成者  :よしたk
 ファイル名:main.d
 問題番号 :No.9001
-----------------------------*/

/*---------------------
 import
-----------------------*/
import std.stdio;
import std.string;
import std.conv;

/*---------------------
 main
-----------------------*/
int main(string[] args)
{
	//A+B
	int a, b, ans;
	a = to!(int)(args[0]);
	b = to!(int)(args[1]);
	ans = a + b;
	
	//s
	string s = args[2];
	
	//output
	writefln("%d %s", ans, s);
	
	return 0;
}
0