結果

問題 No.138 化石のバージョン
ユーザー tntantntan
提出日時 2015-12-15 06:06:26
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 558 bytes
コンパイル時間 734 ms
コンパイル使用メモリ 71,920 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-13 17:04:58
合計ジャッジ時間 2,201 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,372 KB
testcase_01 AC 1 ms
4,368 KB
testcase_02 AC 1 ms
4,368 KB
testcase_03 AC 2 ms
4,368 KB
testcase_04 AC 2 ms
4,368 KB
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 2 ms
4,372 KB
testcase_07 AC 1 ms
4,372 KB
testcase_08 AC 1 ms
4,372 KB
testcase_09 AC 1 ms
4,372 KB
testcase_10 AC 2 ms
4,372 KB
testcase_11 AC 2 ms
4,372 KB
testcase_12 WA -
testcase_13 AC 2 ms
4,368 KB
testcase_14 WA -
testcase_15 AC 2 ms
4,368 KB
testcase_16 AC 2 ms
4,372 KB
testcase_17 AC 1 ms
4,368 KB
testcase_18 AC 1 ms
4,368 KB
testcase_19 AC 1 ms
4,368 KB
testcase_20 AC 1 ms
4,368 KB
testcase_21 AC 1 ms
4,368 KB
testcase_22 AC 1 ms
4,376 KB
testcase_23 AC 1 ms
4,368 KB
testcase_24 AC 1 ms
4,368 KB
testcase_25 AC 1 ms
4,372 KB
testcase_26 AC 2 ms
4,372 KB
testcase_27 AC 1 ms
4,372 KB
testcase_28 AC 1 ms
4,368 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 2 ms
4,368 KB
testcase_33 WA -
testcase_34 AC 1 ms
4,368 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<fstream>
#include<iomanip>
#include<vector>
#include<cctype>
#include<algorithm>
#include<sstream>
using namespace std;

int main()
{
	int a[3], b[3];
	char d;
	string s, t;
	stringstream ss;
	cin >> a[0] >> d >> a[1] >> d >> a[2];
	cin >> b[0] >> d >> b[1] >> d >> b[2];
	for (int i = 0; i < 3; i++)
	{
		string p, q;
		ss << a[i]; ss >> p; ss.clear();
		s += p;
		ss << b[i]; ss >> q; ss.clear();
		t += q;
		p.clear();
		q.clear();
	}
	if (s >= t)cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}
0