結果
問題 | No.383 レーティング |
ユーザー |
![]() |
提出日時 | 2016-07-01 23:40:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,011 bytes |
コンパイル時間 | 772 ms |
コンパイル使用メモリ | 86,412 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 01:24:38 |
合計ジャッジ時間 | 1,284 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#define _USE_MATH_DEFINES #include <sstream> //string stream its useful! #include<string> #include<iostream> #include<utility> //pair #include <vector> // vector #include <algorithm> // swap,sort,binary_search #include <functional> // std::greater #include <map> //map #include<set> //set #include<queue> //queue #include<list> //list #include<cmath> #include<numeric> #include<cassert> #include <iomanip> //cout<<setprecision typedef long long ll; #define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0])) using namespace std; void omajinai() { cin.tie(0); ios::sync_with_stdio(false); cout<<setprecision(15); //freopen("txt.csv","r",stdin); } bool hantei(int c, int p){ if(c>=3 || p>=2) return false; if(c==2 && p>=1) return false; return true; } string myc(int a){ if(a <= 0) return ""; return "+"; } int main(){ omajinai(); int a,b; cin>>a>>b; string ans = "" ; ans+=myc(b-a); ans+=to_string(b-a); cout<<ans<<endl; }