結果
| 問題 | 
                            No.138 化石のバージョン
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hiyori
                         | 
                    
| 提出日時 | 2017-08-06 08:10:42 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 347 bytes | 
| コンパイル時間 | 576 ms | 
| コンパイル使用メモリ | 64,268 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-11 22:40:12 | 
| 合計ジャッジ時間 | 1,699 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 WA * 11 | 
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main()
{
    string s1,s2;
    cin >> s1 >> s2;
    int flag=1;
    for(int i=0; i<s1.length(); i+=2) {
        if(s1[i] >= s2[i]) { continue;}
        else { flag=0; break;}
    }
    if(flag==0) { cout << "NO" << endl; }
    else if(flag==1) { cout << "YES" << endl;}
    return 0;
}
            
            
            
        
            
hiyori