結果
| 問題 |
No.169 何分かかるの!?
|
| コンテスト | |
| ユーザー |
カルロス
|
| 提出日時 | 2015-09-14 12:14:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 206 bytes |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 23,552 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 06:25:12 |
| 合計ジャッジ時間 | 898 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
コンパイルメッセージ
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;
scanf("%d %d", &K, &S);
a = floor((double)S * 100.0 /(100.0 - (double)K));
printf("%.0lf\n", a);
return 0;
}
カルロス