/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 324.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 1ms 540.0 KiB
#4 Accepted 1ms 440.0 KiB
#5 Accepted 1ms 400.0 KiB
#6 Accepted 1ms 588.0 KiB
#7 Accepted 1ms 540.0 KiB
#8 Accepted 1ms 540.0 KiB
#9 Accepted 1ms 332.0 KiB
#10 Accepted 1ms 772.0 KiB
#11 Accepted 1ms 540.0 KiB
#12 Accepted 1ms 560.0 KiB
#13 Accepted 1ms 556.0 KiB
#14 Accepted 1ms 540.0 KiB
#15 Accepted 1ms 536.0 KiB

Code

#include<bits/stdc++.h>
using ll = long long;
using ld = long double;
#define pb push_back
#define ppb pop_back
#define vi vector<int>
#define vll vector<long long>
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define pii pair<int,int>
#define pll pair<ll,ll>
#define F first
#define S second
#define yes "YES\n"
#define no "NO\n"
#define full(n) getline(cin,n)
#define IstiaqModeOn ios::sync_with_stdio(0); cin.tie(0);
using namespace std;
int main()
{
    IstiaqModeOn;
    int a,b,c;
cin >> a >> b >> c;
int vai7 = max(a,b)-min(a,b);
int vai3 = max(a,c)-min(a,c);
if(vai7<vai3)cout << "7vai" << "\n";
else if(vai7>vai3)cout << "3vai" << "\n";
else cout << "mojo" << "\n";

}

Information

Submit By
Type
Submission
Problem
P1179 7vai , 3vai or mojo ?
Language
C++17 (G++ 13.2.0)
Submit At
2025-03-02 16:00:53
Judged At
2025-03-02 16:00:53
Judged By
Score
100
Total Time
2ms
Peak Memory
772.0 KiB