結果
| 問題 | No.730 アルファベットパネル |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-11 15:26:44 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 38,368 KB |
| 最終ジャッジ日時 | 2026-02-22 13:13:45 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 8 |
ソースコード
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
void main(void){
char str[100] = "a";
scanf("%s",str);
bool flg = true;
for(int i = 0 ; i < (int)strlen(str);i++){
for(int j = i+1;j < (int)strlen(str);j++){
if(str[i] == str[j]){
flg = false;
break;
}
}
if(!flg){
break;
}
}
if(flg){
printf("YES");
}else{
printf("NO");
}
}
Maeda