結果
問題 |
No.221 犯罪都市
|
ユーザー |
|
提出日時 | 2017-02-15 16:25:07 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 860 ms |
コンパイル使用メモリ | 20,992 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-25 01:11:30 |
合計ジャッジ時間 | 910 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:21: warning: format ‘%lf’ expects a matching ‘double *’ argument [-Wformat=] 5 | scanf("%lf%lf",&p);p/=100; | ~~^ | | | double * main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%lf%lf",&p);p/=100; | ^~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ double p,q=99,t,nt,r; scanf("%lf%lf",&p);p/=100; t = p*q; nt =(100 - p)*(100 - q); printf("%.13lf\n",100-(t * 100/(t+nt))); return 0; }