結果
| 問題 |
No.169 何分かかるの!?
|
| コンテスト | |
| ユーザー |
カルロス
|
| 提出日時 | 2015-09-14 12:10:45 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 22,272 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-19 06:25:11 |
| 合計ジャッジ時間 | 722 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d %d", &K, &S);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include <math.h>
int main(void){
int K, S;
double a, ans;
scanf("%d %d", &K, &S);
a = (double)S * 100.0 /(100.0 - (double)K);
printf("%.0lf\n", a);
return 0;
}
カルロス