結果
問題 |
No.739 大事なことなので2度言います
|
ユーザー |
![]() |
提出日時 | 2018-10-20 22:35:03 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 02:58:57 |
合計ジャッジ時間 | 870 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 4 WA * 3 |
ソースコード
#include <stdio.h> #include <string.h> int main(void){ char txt[256]; int hoge,i=1; scanf("%s",txt); hoge=strlen(txt)-1; if(txt[0]==txt[1]){ printf("NO"); i*=-1; } if(i==1){ if(hoge%2){ printf("YES"); } else { printf("NO"); } } return 0; }