結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-03-13 15:00:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 742 ms |
| コンパイル使用メモリ | 61,332 KB |
| 実行使用メモリ | 7,328 KB |
| 最終ジャッジ日時 | 2025-03-13 15:00:32 |
| 合計ジャッジ時間 | 2,026 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 17 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
// ?????????
string s,ans;
cin >> s ;
for( int i=0;i<=s.size();i++ )
{
ans+='a';
int pos = s.find(ans);
if( pos==-1 )
{
cout << ans;
return 0;
}
}
return 0;
}
vjudge1