結果
問題 | No.671 1000000007 |
ユーザー |
|
提出日時 | 2018-04-24 23:46:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 253 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 23,552 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 20:40:44 |
合計ジャッジ時間 | 664 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:14:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%c", &q); | ~~~~~^~~~~~~~~~
ソースコード
#include <stdio.h>#include<stdlib.h>/*1000000007*/int main(){int zero = 8;int count = 0;char q = 'a';while ( q != '7' ) {scanf("%c", &q);count++;}count -= 2;printf("%d\n", abs(zero - count) );return (0);}