結果
| 問題 | No.1643 Not Substring |
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-08-13 21:29:43 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 480 bytes |
| 記録 | |
| コンパイル時間 | 2,851 ms |
| コンパイル使用メモリ | 277,468 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-06-22 13:52:37 |
| 合計ジャッジ時間 | 3,745 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 9 WA * 17 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
string s;
cin>>s;
string temp="";
rep(i,s.size()+2){
//cout<<i<<" "<<temp<<endl;
temp+="a";
int flag=1;
rep(j,s.size()-i){
if(s.substr(j,i+1)==temp){
flag=0;
break;
}
}
if(flag){
cout<<temp<<endl;
return 0;
}
}
return 0;
}
chacoder1