結果
| 問題 |
No.725 木は明らかに森である
|
| コンテスト | |
| ユーザー |
Heropro7
|
| 提出日時 | 2018-10-28 01:19:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 55,900 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-19 06:56:24 |
| 合計ジャッジ時間 | 822 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 6 |
ソースコード
#include<iostream>
#include<cstring>
#include<string.h>
//#include<string>
using namespace std;
int main(){
char S[100]="treeone";
string inputS;
cin >> inputS;
for(int i=0;i < inputS.size()-7;i++){
if(strncmp(S,&inputS[i],7)==0){
strcpy(&inputS[i],"forest");break;
}
}
cout << inputS << endl;
return 0;
}
Heropro7