結果

問題 No.725 木は明らかに森である
ユーザー Heropro7Heropro7
提出日時 2018-10-28 01:19:01
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 410 ms
コンパイル使用メモリ 55,772 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-29 22:19:32
合計ジャッジ時間 941 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
5,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 1 ms
5,376 KB
testcase_07 WA -
testcase_08 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0