結果
問題 | No.1469 programing |
ユーザー |
![]() |
提出日時 | 2021-05-10 00:00:28 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 78 ms / 3,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 954 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-19 04:25:48 |
合計ジャッジ時間 | 2,205 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%s", s); | ^~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(void) { char s[5000001]; int i; scanf("%s", s); i = 0; while(s[i] != 0){ printf("%c", s[i]); if(s[i] == s[i + 1]){ i += 2; } else { i++; } } printf("\n"); return 0; }