結果

問題 No.221 犯罪都市
ユーザー moti
提出日時 2015-07-26 16:39:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 151 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 22,784 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-25 00:51:46
合計ジャッジ時間 798 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:3:13: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    3 | int N; scanf("%d", &N);
      |        ~~~~~^~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main() {
int N; scanf("%d", &N);
double a = (10000 - N) * 0.01, b = N * 0.99;
printf("%.8f\n", a / (a + b) * 100.0);
return 0;
}
0