結果
問題 | No.2863 Base 10 Subsets 1 |
ユーザー |
![]() |
提出日時 | 2024-09-02 02:35:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 426 bytes |
コンパイル時間 | 2,043 ms |
コンパイル使用メモリ | 193,340 KB |
最終ジャッジ日時 | 2025-02-24 03:44:09 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
#include <bits/stdc++.h> int main(){ std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int A, B; std::cin >> A >> B; bool ok = true; while(A > 0 || B > 0){ if(A % 10 < B % 10){ ok = false; break; } A /= 10; B /= 10; } if(ok){ std::cout << "Yes" << std::endl; }else{ std::cout << "No" << std::endl; } }