Contest Duration: - (local time) (100 minutes) Back to Home

Submission #1715409

Source Code Expand

Copy
```# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
def __init__(self, function):
self.function = function

def __ror__(self, other):
self.left = other
return self

def __or__(self, other):
return self.function(self.left, other)

def __call__(self, value1, value2):
return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
def __rlshift__(self, other):
self.value = other
return self

def __rshift__(self, other):
return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)

x = [0]*3
x[0], x[1], x[2] = map(int,input().split())
x.sort()
if x[0]==5 and x[1] == 5 and x[2] == 7:
print("YES");
else:
print("NO");
```

#### Submission Info

Submission Time 2017-10-28 14:11:38+0900 A - Iroha and Haiku (ABC Edition) hamko C++14 (GCC 5.4.1) 0 1051 Byte CE

#### Compile Error

```./Main.cpp:1:3: error: invalid preprocessing directive #-
# -*- coding: utf-8 -*-
^
./Main.cpp:26:1: error: stray ‘@’ in program
@infix
^
./Main.cpp:39:2: error: invalid preprocessing directive #d
#d = {1:2, 3:5, 6:10, 1000043:3814}
^
./Main.cpp:40:2: error: invalid preprocessing directive #zip
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)
^
./Main.cpp:2:1: error: ‘import’ does not name a type
import math
^
./Main.cpp:48:1: error: expected unqualified-id before ‘else’
else:
^
```