結果
問題 | No.932 解法破綻!高橋君 |
ユーザー |
![]() |
提出日時 | 2021-05-02 11:59:47 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 150 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 20:32:24 |
合計ジャッジ時間 | 1,070 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%s", s); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { int i, flag = 1; char s[400000]; scanf("%s", s); i = 0; while(s[i] != 0){ if(s[i] == ',' && (s[i - 1] == 'A' || s[i - 1] == 'E')){ printf("Failed...\n"); flag = 0; break; } i++; } if(flag == 1){ printf("Done!\n"); } return 0; }