Submission #244258
Source Code Expand
#include <vector> #include <iostream> #include <set> #include <cstdio> #include <queue> #include <cstdio> #include <cstdlib> #include <cassert> #include <ctime> #include <cmath> #include <complex> #include <algorithm> #include <tuple> #include <algorithm> #include <limits> #include <map> #include <valarray> #include <list> using namespace std; typedef long long ll; template<class T> struct Pi { T x, y; Pi() {} Pi(T xx, T yy) { x = xx; y = yy; } bool operator<(const Pi &r) const { if (x != r.x) return x < r.x; return y < r.y; } bool operator>(const Pi &r) const { if (x != r.x) return x > r.x; return y > r.y; } bool operator==(const Pi &r) const { if (x != r.x) return false; return y == r.y; } }; template<class T> struct Ti { T x, y, z; Ti() {} Ti(T xx, T yy, T zz) { x = xx; y = yy; z = zz; } bool operator<(const Ti &r) const { if (x != r.x) return x < r.x; if (y != r.y) return y < r.y; return z < r.z; } bool operator>(const Ti &r) const { if (x != r.x) return x > r.x; if (y != r.y) return y > r.y; return z > r.z; } bool operator==(const Ti &r) const { if (x != r.x) return false; if (y != r.y) return false; return z == r.z; } }; #define I2 //#define I3 //#define S int main() { #ifdef I2 int a, b; cin >> a >> b; #endif #ifdef I3 int a, b, c; cin >> a >> b >> c; #endif #ifdef S string s; cin >> s; #endif int res; res = a*b; cout << res; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Code Formula 2015 |
User | yosupo |
Language | C++11 (GCC 4.8.1) |
Score | 100 |
Code Size | 1745 Byte |
Status | AC |
Exec Time | 29 ms |
Memory | 928 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_2_1.txt, test_349_131.txt, test_383_460.txt, test_851_774.txt, test_913_969.txt, test_916_44.txt, test_999_1000.txt, sample_01.txt, sample_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 24 ms | 696 KB |
sample_02.txt | AC | 23 ms | 928 KB |
test_2_1.txt | AC | 23 ms | 676 KB |
test_349_131.txt | AC | 25 ms | 736 KB |
test_383_460.txt | AC | 25 ms | 676 KB |
test_851_774.txt | AC | 27 ms | 700 KB |
test_913_969.txt | AC | 25 ms | 676 KB |
test_916_44.txt | AC | 29 ms | 796 KB |
test_999_1000.txt | AC | 25 ms | 804 KB |