結果
問題 |
No.169 何分かかるの!?
|
ユーザー |
![]() |
提出日時 | 2015-03-22 23:27:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 324 ms |
コンパイル使用メモリ | 31,360 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 00:10:08 |
合計ジャッジ時間 | 1,297 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 WA * 15 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d%d", &k, &s); | ~~~~~^~~~~~~~~~~~~~~~
ソースコード
#include <cstdio> #include <cmath> int main(void) { int k, s; scanf("%d%d", &k, &s); double per = k * (1.0 / 100.0); double tmp = 1.0 - per; int ans = ceil(s * (1.0 / tmp)); printf("%d\n", ans); }