Submission #555816
Source Code Expand
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <iostream>
#include <iomanip>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <unordered_map>
#define rep(i,l) for(int(i)=0; (i)<int(l); i++)
#define mp(x,y) make_pair(x, y)
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
#define pb(x) push_back(x)
#define pob(x) pop_back(x)
#define pf(x) push_front(x)
#define pof(x) pop_front(x)
#define srtg(x) sort(all(x), greater<int>())
#define print(x) cout<<x;
#define printn(x) cout<<x<<endl;
#define INF 0x3f3f3f3f
#define INFL 0x3f3f3f3f3f3f3f3fLL
using namespace std;
typedef vector<int> vi; typedef vector<string> vs; typedef vector<double> vd;
typedef pair<int, int> pi;
typedef priority_queue<int> pqi; typedef priority_queue<int, vector<int>, greater<int> > pqig;
template<typename T, typename U> inline int amin(T &x, U &y) { if(y < x) swap(x,y); return x;}
template<typename T, typename U> inline int amax(T &x, U &y) { if(x < y) swap(x,y); return x;}
int main(int argc, char *argv[]) {
int a, b;
cin >> a >> b;
printn(amax(a,b))
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 正直者 |
| User | Ryuno |
| Language | C++11 (GCC 4.8.1) |
| Score | 100 |
| Code Size | 1269 Byte |
| Status | AC |
| Exec Time | 33 ms |
| Memory | 1148 KiB |
Judge Result
| Set Name | all | ||
|---|---|---|---|
| Score / Max Score | 100 / 100 | ||
| Status |
|
| Set Name | Test Cases |
|---|---|
| all | 00_sample_01.txt, 00_sample_02.txt, kensho_diff01, kensho_diff02, kensho_diff03, kensho_diff04, kensho_diff05, kensho_min-max01, kensho_min-max02, kensho_min-max03, kensho_min-max04, kensho_min-max05, kensho_min-max06, kensho_min-max07, kensho_min-max08, kensho_min-max09, kensho_min-max10, kensho_rand01, kensho_rand02, kensho_rand03, kensho_rand04, kensho_rand05, kensho_rand06, kensho_rand07, kensho_rand08, kensho_rand09, kensho_rand10 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_01.txt | AC | 32 ms | 1084 KiB |
| 00_sample_02.txt | AC | 32 ms | 1140 KiB |
| kensho_diff01 | AC | 33 ms | 1064 KiB |
| kensho_diff02 | AC | 32 ms | 1056 KiB |
| kensho_diff03 | AC | 32 ms | 1004 KiB |
| kensho_diff04 | AC | 33 ms | 1060 KiB |
| kensho_diff05 | AC | 32 ms | 992 KiB |
| kensho_min-max01 | AC | 31 ms | 1148 KiB |
| kensho_min-max02 | AC | 32 ms | 1064 KiB |
| kensho_min-max03 | AC | 32 ms | 1068 KiB |
| kensho_min-max04 | AC | 32 ms | 1000 KiB |
| kensho_min-max05 | AC | 32 ms | 1064 KiB |
| kensho_min-max06 | AC | 32 ms | 1060 KiB |
| kensho_min-max07 | AC | 31 ms | 1056 KiB |
| kensho_min-max08 | AC | 29 ms | 1048 KiB |
| kensho_min-max09 | AC | 31 ms | 1144 KiB |
| kensho_min-max10 | AC | 29 ms | 992 KiB |
| kensho_rand01 | AC | 30 ms | 1136 KiB |
| kensho_rand02 | AC | 30 ms | 1080 KiB |
| kensho_rand03 | AC | 31 ms | 1080 KiB |
| kensho_rand04 | AC | 29 ms | 1060 KiB |
| kensho_rand05 | AC | 30 ms | 1000 KiB |
| kensho_rand06 | AC | 31 ms | 1144 KiB |
| kensho_rand07 | AC | 32 ms | 1080 KiB |
| kensho_rand08 | AC | 31 ms | 1080 KiB |
| kensho_rand09 | AC | 29 ms | 1044 KiB |
| kensho_rand10 | AC | 30 ms | 1136 KiB |