結果
問題 |
No.671 1000000007
|
ユーザー |
|
提出日時 | 2018-04-14 06:30:32 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 23,040 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 22:07:21 |
合計ジャッジ時間 | 692 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:9: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%s",str); | ~~~~~^~~~~~~~~~
ソースコード
#include <string.h> #include <stdio.h> int abs(int a){ return (a<0)? -a : a;} int main(){ char str[100]; scanf("%s",str); printf("%d\n",abs(strlen(str)-strlen("1000000007"))); }