結果
問題 |
No.795 Restrictions!!!!!!!!!!!!!!
|
ユーザー |
![]() |
提出日時 | 2019-03-15 23:56:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 539 ms |
コンパイル使用メモリ | 60,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 22:08:34 |
合計ジャッジ時間 | 1,361 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cstdio> using namespace std; typedef long long ll; int mod = 1e9 + 7; int main(void) { string n, m; cin >> n >> m; string a = m.substr(0, m.size() - 1); if(n==a&&m[m.size()-1]=='0') cout << "Yes" << endl; else cout << "No" << endl; return 0; }