結果
問題 |
No.285 消費税2
|
ユーザー |
|
提出日時 | 2015-10-09 22:46:17 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 984 bytes |
コンパイル時間 | 501 ms |
コンパイル使用メモリ | 67,108 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 04:23:19 |
合計ジャッジ時間 | 1,294 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 2 WA * 24 |
ソースコード
#include<iostream> #include<string> #include<vector> #include<algorithm> #include<functional> #include<cassert> #include<numeric> // std::accumulate(vec.begin(),vec.end(),0) sum of element #include<cmath> #include<cstdio> #include<cstdlib> using namespace std; typedef long long ll; typedef std::pair<int, int> mypair; #define DEBUG // void print_vector(const std::vector<int> &t); // void unique_vector(std:: vector<int> &t); template <class X> void print_vector(const std::vector<X> &t); template <class X> void unique_vector(std:: vector<X> &t); ll n, m; int main(){ cin >> n; cout << n*1.08 << endl; } template <class X> void unique_vector(std::vector<X> &t) { std::sort(t.begin(), t.end()); t.erase( std::unique(t.begin(), t.end()), t.end() ); } template <class X> void print_vector(const std::vector<X> &t){ for(auto itr=t.begin(); itr != t.end(); itr++){ std::cout << *itr; if(itr != t.end()-1) std::cout << ' '; } std::cout << std::endl; }