結果

問題 No.138 化石のバージョン
ユーザー tntan
提出日時 2015-12-15 05:52:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 778 ms
コンパイル使用メモリ 70,228 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 13:00:27
合計ジャッジ時間 1,966 ms
ジャッジサーバーID
(参考情報)
judge3 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main()
{
	string s, t, ss, tt;
	cin >> s;
	cin >> t;
	for (int i = 0; i < 5;i++)
	{
		if (i % 2 == 0)
		{
			ss += s[i];
			tt += t[i];
		}
	}
	if (ss >= tt)cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}
0