提出 #3442939


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;

int main(){
  string N;
  cin >> N;
  if(N[0] >= N[1] && N[0] >= N[2])
    printf("%c%c%c\n", N[0], N[0], N[0]);
  else
    printf("%c%c%c\n", N[0]+1, N[0]+1, N[0]+1);
  return 0;
}

提出情報

提出日時
問題 B - AtCoder Beginner Contest 111
ユーザ wpfwkn
言語 C++14 (GCC 5.4.1)
得点 200
コード長 241 Byte
結果 AC
実行時間 1 ms
メモリ 256 KB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 15
セット名 テストケース
Sample sample1.txt, sample2.txt, sample3.txt
All sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt
ケース名 結果 実行時間 メモリ
1.txt AC 1 ms 256 KB
2.txt AC 1 ms 256 KB
3.txt AC 1 ms 256 KB
4.txt AC 1 ms 256 KB
5.txt AC 1 ms 256 KB
6.txt AC 1 ms 256 KB
7.txt AC 1 ms 256 KB
8.txt AC 1 ms 256 KB
9.txt AC 1 ms 256 KB
sample1.txt AC 1 ms 256 KB
sample2.txt AC 1 ms 256 KB
sample3.txt AC 1 ms 256 KB