結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー focus
提出日時 2018-02-17 00:34:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 67,520 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 16:29:50
合計ジャッジ時間 1,193 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;

int main(){
    string s1,s2;
    int flag=0;
    cin >> s1 >> s2;
    for(int i=0;i<=12345;i++){
        if(s1==to_string(i))    flag++;
        if(s2==to_string(i))    flag++;
    }
    if(flag==2) cout << "OK";
    else    cout << "NG";
    return 0;
}
0