Submission #44739
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <cassert> #include <climits> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include <map> #include <set> #include <fstream> using namespace std; #define TOSTRING(x) #x #define SZ(x) (int)(x).size() #define REP(i,n) for(int i=0;i<(n);i++) #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REPR(i,n) for(int i=(n)-1;i>=0;i--) #define ALL(s) (s).begin(), (s).end() #define so(V) sort(ALL(V)) #define rev(V) reverse(ALL(V)) #define uni(v) v.erase( unique(ALL(v)) , v.end()); #define PAU system("pause") typedef long long unsigned int llu; typedef long long ll; typedef vector< int > vi; typedef vector<ll> vll; typedef vector< bool > vb; typedef vector<vi> vvi; typedef vector<vll> vvll; typedef vector<vb> vvb; const double EPS = 1e-9; const int MOD = 1e9 + 7; const int INF = (1 << 28); const double PI = acos (-1); int main() { cin.tie(0); ios::sync_with_stdio( false ); ll a, b; char c; cin >> a >> c >> b; if (c == '+' )cout << a + b << endl; else cout << a - b << endl; PAU; return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0935 - crom君の宿題 |
ユーザー名 | Daylight |
投稿日時 | 2018-11-12 21:24:36 |
言語 | C++11 |
状態 | Accepted |
得点 | 10 |
ソースコード長 | 1251 Byte |
最大実行時間 | 68 ms |
最大メモリ使用量 | 756 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input01.txt | AC | 68 ms | 716 KB |
1
|
input02.txt | AC | 34 ms | 756 KB |
1
|
input03.txt | AC | 60 ms | 676 KB |
1
|
input04.txt | AC | 20 ms | 720 KB |
1
|