結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー 0w1
提出日時 2016-11-19 15:41:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 452 bytes
コンパイル時間 1,672 ms
コンパイル使用メモリ 167,708 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-26 21:51:35
合計ジャッジ時間 2,346 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 9 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

bool ok( string a, string b ){
  for( int i = 0; i < a.size(); ++i )
    if( not ( '0' <= a[ i ] and a[ i ] <= '9' ) )
      return false;
  for( int i = 0; i < b.size(); ++i )
    if( not ( '0' <= b[ i ] and b[ i ] <= '9' ) )
      return false;
  return true;
}

signed main(){
  string A, B; cin >> A >> B;
  if( not ok( A, B ) )
    cout << "NG" << endl;
  else
    cout << "OK" << endl;
  return 0;
}
0