結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2022-09-23 13:08:04 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 1,653 ms |
コンパイル使用メモリ | 200,344 KB |
最終ジャッジ日時 | 2025-02-07 13:51:42 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define int long longsigned main(){set<string> s;for(int i=0;i<=12345;i++){s.insert(to_string(i));}string a,b;cin>>a>>b;if(s.count(a) && s.count(b)) cout<<"OK"<<endl;else cout<<"NG"<<endl;}