結果
| 問題 |
No.1643 Not Substring
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-17 00:43:40 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 448 bytes |
| コンパイル時間 | 681 ms |
| コンパイル使用メモリ | 80,328 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-29 17:18:27 |
| 合計ジャッジ時間 | 1,678 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 7 WA * 19 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
#include<set>
#include<map>
#include <ios>
#include <iomanip>
#include<algorithm>
using namespace std;
int main(){
string s;
cin >> s;
int num = s.size();
string ans = "a";
for(int i=0; i<num; i++){
if(s[i] == 'a'){
ans+='a';
}else{
cout << ans << endl;
return 0;
}
}
cout << ans << endl;
return 0;
}