結果
問題 | No.169 何分かかるの!? |
ユーザー |
![]() |
提出日時 | 2015-09-14 12:05:48 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 191 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 22,784 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 06:25:10 |
合計ジャッジ時間 | 807 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 1 WA * 21 |
コンパイルメッセージ
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; float a, ans; scanf("%d %d", &K, &S); a = (float)S * 100.0 / (float)K; printf("%.0f\n", a); return 0; }