結果

問題 No.841 8/32
ユーザー LayCurseLayCurse
提出日時 2019-06-28 21:22:17
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,018 bytes
コンパイル時間 1,914 ms
コンパイル使用メモリ 198,100 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-14 21:30:25
合計ジャッジ時間 2,961 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 1 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,380 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,376 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 2 ms
4,380 KB
testcase_18 AC 1 ms
4,380 KB
testcase_19 AC 2 ms
4,380 KB
testcase_20 AC 1 ms
4,508 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
inline int rd(char c[]){
  int i, sz=0;
  for(;;){
    i = getchar_unlocked();
    if(i!=' '&&i!='\n'&&i!='\r'&&i!='\t'&&i!=EOF){
      break;
    }
  }
  c[sz++] = i;
  for(;;){
    i = getchar_unlocked();
    if(i==' '||i=='\n'||i=='\r'||i=='\t'||i==EOF){
      break;
    }
    c[sz++] = i;
  }
  c[sz]='\0';
  return sz;
}
inline void wt_L(char a){
  putchar_unlocked(a);
}
inline void wt_L(const char c[]){
  int i=0;
  for(i=0;c[i]!='\0';i++){
    putchar_unlocked(c[i]);
  }
}
char S1[5];
char S2[5];
int main(){
  rd(S1);
  rd(S2);
  if(S1[0]=='S' && S2[0]=='S'){
    wt_L("8/33");
    wt_L('\n');
  }
  else if(S1[0]=='S'){
    wt_L("8/32");
    wt_L('\n');
  }
  else{
    wt_L("8/31");
    wt_L('\n');
  }
  return 0;
}
// cLay varsion 20190626-1

// --- original code ---
// char S1[5], S2[5];
// {
//   rd(S1,S2);
//   if(S1[0]=='S' && S2[0]=='S'){
//     wt("8/33");
//   } else if(S1[0]=='S'){
//     wt("8/32");
//   } else {
//     wt("8/31");
//   }
// }
0