結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
cww
|
| 提出日時 | 2016-09-27 22:15:04 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 451 bytes |
| 記録 | |
| コンパイル時間 | 1,129 ms |
| コンパイル使用メモリ | 186,844 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-15 12:30:49 |
| 合計ジャッジ時間 | 2,392 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
int main()
{
string S;
vector<string> str;
while( getline( cin, S ) )
{
S = S + '.';
size_t pos = 0;
string tmp;
for( size_t i = pos; i < S.size(); i++ )
{
pos = S.find_first_of( '.' , i );
tmp += S.substr( i, pos - i );
i += ( pos - i );
}
str.push_back( tmp );
}
cout << ( str[ 0 ] < str[ 1 ] ? "NO" : "YES" ) << endl;
return 0;
}
cww