結果
問題 | No.1367 文字列門松 |
ユーザー | shiomusubi496 |
提出日時 | 2021-01-29 21:40:11 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 1,460 ms |
コンパイル使用メモリ | 165,672 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 07:51:43 |
合計ジャッジ時間 | 2,405 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 27 |
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; signed main(){ string s;cin>>s; string t="kadomatsu"; for(int i=0,j=0;i<s.size();i++,j++){ for(;;j++){ if(j==t.size()){ puts("No"); return 0; } if(s[i]==t[j])break; } } puts("Yes"); }