結果
問題 |
No.169 何分かかるの!?
|
ユーザー |
![]() |
提出日時 | 2015-03-22 23:28:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 284 bytes |
コンパイル時間 | 423 ms |
コンパイル使用メモリ | 66,392 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-29 00:10:51 |
合計ジャッジ時間 | 1,289 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 2 WA * 20 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:16:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 16 | int k,s;scanf("%d%d",&k,&s); | ~~~~~^~~~~~~~~~~~~~
ソースコード
#include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <iostream> #include <map> #include <vector> #include <queue> using namespace std; //namaega184 int main(){ int k,s;scanf("%d%d",&k,&s); printf("%d\n",s+(int)(1.0-k/100.0)*s); return 0; }