×
解除綁定,重新設定系統帳號的密碼
您的系統帳號 ID:
您的系統帳號:
您的帳號暱稱:
設定新密碼:
設定新密碼:
×
請輸入要加入的「課程代碼」
請向開設課程的使用者索取「課程代碼」
Problems
Submissions
Rank
Forum
Contest
Login
Register
New Thread
解題報告
#45346: c語言簡單最快解
a09387795119@gmail.com
(gonnnm)
School : No School
ID : 157668
×
傳送站內訊息
To:
Subject:
Content:
IP address : [182.233.24.152]
Last Login :
2025-05-11 09:14:35
a022.
迴文
| From: [182.233.24.152] | Post Date : 2025-02-16 22:34
#include<stdio.h>
void repeat(char str[],int n){
int i=0,ans=0,temp=n;
for(i=0;i<n;i++){
temp--;
if(str[i]==str[temp]){
ans++;
}
}
if(ans==n){
printf("yes");
}else{
printf("no");
}
}
int main(void){
char str[100];
int i,j,n=0;
scanf("%[^\n]",str);
for(i=0;str[i]!='\0';i++){
n++;
}
repeat(str,n);
return 0;
}
ZeroJudge Forum