結果
問題 | No.2863 Base 10 Subsets 1 |
ユーザー | kotatsugame |
提出日時 | 2024-08-30 21:22:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 494 ms |
コンパイル使用メモリ | 64,812 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-30 21:22:18 |
合計ジャッジ時間 | 1,143 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
#include<iostream> #include<cassert> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string A,B; cin>>A>>B; for(int i=0;i<B.size();i++) { int b=B[B.size()-i-1]-'0'; int a=i<A.size()?A[A.size()-i-1]-'0':0; if(a<b) { cout<<"No"<<endl; return 0; } } cout<<"Yes\n"; }