結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
tntan
|
| 提出日時 | 2015-12-15 06:06:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 558 bytes |
| コンパイル時間 | 761 ms |
| コンパイル使用メモリ | 71,728 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 13:01:43 |
| 合計ジャッジ時間 | 1,891 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 7 |
ソースコード
#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;
}
tntan