結果

問題 No.518 ローマ数字の和
ユーザー BwambocosBwambocos
提出日時 2017-05-28 21:59:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 881 bytes
コンパイル時間 2,561 ms
コンパイル使用メモリ 167,712 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 14:11:47
合計ジャッジ時間 2,481 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
#define MOD 1000000007
#define INF 11234567890
#define in std::cin
#define out std::cout
#define rep(i,N) for(LL i=0;i<N;++i)
typedef long long int LL;

int N;
std::string R[112];
std::pair<std::string, int>list[13];

int main()
{
	in >> N;
	rep(i, N) { in >> R[i]; }

	list[0].first = "IV", list[0].second = 4;
	list[1].first = "IX", list[1].second = 9;
	list[2].first = "XL", list[2].second = 40;
	list[3].first = "XC", list[3].second = 90;
	list[4].first = "CD", list[4].second = 400;
	list[5].first = "CM", list[5].second = 900;
	list[6].first = "I", list[6].second = 1;
	list[7].first = "V", list[7].second = 5;
	list[8].first = "X", list[8].second = 10;
	list[9].first = "L", list[9].second = 50;
	list[10].first = "C", list[10].second = 100;
	list[11].first = "D", list[11].second = 500;
	list[12].first = "M", list[12].second = 1000;
	
	return 0;
}
0