結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
cww
|
| 提出日時 | 2016-09-23 11:38:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 465 bytes |
| 記録 | |
| コンパイル時間 | 1,468 ms |
| コンパイル使用メモリ | 172,416 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-17 17:37:37 |
| 合計ジャッジ時間 | 2,500 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 8 |
ソースコード
#include <bits/stdc++.h>
#define REP(i,n) for(int i=0; i<(n); i++)
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
int main()
{
string S;
vector<string> str;
while( getline( cin, S ) )
{
string tmp;
tmp += S[0];
tmp += S[2];
tmp += S[4];
str.push_back( tmp );
}
REP( i, (int)str.size() - 1 )
{
if( str[ i ] < str[ i + 1 ] )
{
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}
cww