Submission #28527059


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)//iをaからn
#define per(i,n,a) for (int i=a-1;i>=n;i--)//iをnからa
#define db(x) cout << #x << " = " << x << endl//デバッグ用
#define db2(x, y) cout << "(" << #x << ", " << #y << ") = (" << x << ", " << y << ")\n"; //デバッグ用
#define all(x) (x).begin(), (x).end()
#define INF32 2147483647 //2.147483647×10^{9}:32bit整数のinf
#define INF64 9223372036854775807 //9.223372036854775807×10^{18}:64bit整数のinf
#define MOD 998244353 //10^9+7:合同式の法
#define pb push_back
#define mp make_pair
#define F first
#define S second
typedef long long ll;
//sort(all(a)); ソート
//sort(all(a),greater<int>()); 逆順ソート
//a.erase(unique(all(a)), a.end()); ソート後に重複を削除
//cout<< std::fixed << std::setprecision(15)<<0.000001<<endl; 小数点以下を表示させる
//vector<vector<int>> data(3, vector<int>(4)); int型の2次元配列(3×4要素の)の宣言

int main (){
    ll n;
    cin>>n;
    ll a,b,c;
    a=n%10;
    n/=10;
    b=n%10;
    n/=10;
    c=n;
    cout<<111*(a+b+c)<<endl;

    return 0;
}

Submission Info

Submission Time
Task A - Rotate
User naname
Language C++ (GCC 9.2.1)
Score 100
Code Size 1174 Byte
Status AC
Exec Time 6 ms
Memory 3596 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 6 ms 3528 KiB
random_02.txt AC 3 ms 3444 KiB
random_03.txt AC 3 ms 3520 KiB
random_04.txt AC 2 ms 3404 KiB
random_05.txt AC 2 ms 3588 KiB
random_06.txt AC 2 ms 3528 KiB
random_07.txt AC 2 ms 3404 KiB
random_08.txt AC 2 ms 3452 KiB
sample_01.txt AC 2 ms 3456 KiB
sample_02.txt AC 2 ms 3596 KiB