結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2017-07-04 01:11:00 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 1,370 ms |
コンパイル使用メモリ | 167,844 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-05 12:58:09 |
合計ジャッジ時間 | 2,128 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n,N) for(int i=(n);i<(int) N;i++) #define p(s) cout<<(s)<<endl using namespace std; int main(){ string s; bool flag=true; REP(i,0,2){ cin>>s; flag&=!((s[0]=='0')&&s.size()>1); REP(i,0,s.size()){ if(!isdigit(s[i])) flag=false; } } p(flag?"OK":"NG"); return 0; }