結果
問題 | No.285 消費税2 |
ユーザー |
![]() |
提出日時 | 2015-10-17 01:14:17 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 367 bytes |
コンパイル時間 | 1,845 ms |
コンパイル使用メモリ | 157,492 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 07:00:51 |
合計ジャッジ時間 | 3,145 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%lld",&a); | ~~~~~^~~~~~~~~~~
ソースコード
#include<bits/stdc++.h>using namespace std;typedef pair<int,int>P;typedef vector<int>VI;#define rep(i,n) for(int i=0;i<(n);i++)#define pb push_back#define all(v) (v).begin(),(v).end()#define maxv(a,b) (a)=max((a),(b))#define int long longsigned main(){int a;scanf("%lld",&a);a*=108;printf("%lld.%02lld\n",a/100,a%100);return 0;}