提出 #38595912


ソースコード 拡げる

#include <bits/stdc++.h>
#define st first
#define nd second
#define db double
#define re register
#define pb push_back
#define mk make_pair
#define int long long
#define ldb long double
#define pii pair<int, int>
#define ull unsigned long long
#define mst(a, b) memset(a, b, sizeof(a))
using namespace std;
const int N = 1e5 + 10, mod = 998244353;
inline int read()
{
  int s = 0, w = 1;
  char ch = getchar();
  while(ch < '0' || ch > '9') { if(ch == '-') w *= -1; ch = getchar(); }
  while(ch >= '0' && ch <= '9') s = s * 10 + ch - '0', ch = getchar();
  return s * w;
}
signed main()
{
  int n = read();
  for(re int i = 1, x, y; i <= n; i++)
    x = read(), y = read(), cout << x + y << "\n";
  return 0;
}

提出情報

提出日時
問題 A - Many A+B Problems
ユーザ Booksnow
言語 C++ (GCC 9.2.1)
得点 100
コード長 738 Byte
結果 AC
実行時間 6 ms
メモリ 3584 KiB

コンパイルエラー

./Main.cpp: In function ‘int main()’:
./Main.cpp:26:14: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   26 |   for(re int i = 1, x, y; i <= n; i++)
      |              ^
./Main.cpp:26:21: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   26 |   for(re int i = 1, x, y; i <= n; i++)
      |                     ^
./Main.cpp:26:24: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   26 |   for(re int i = 1, x, y; i <= n; i++)
      |                        ^

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 1
AC × 11
セット名 テストケース
Sample example0.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, example0.txt
ケース名 結果 実行時間 メモリ
000.txt AC 6 ms 3420 KiB
001.txt AC 2 ms 3516 KiB
002.txt AC 3 ms 3584 KiB
003.txt AC 3 ms 3412 KiB
004.txt AC 2 ms 3420 KiB
005.txt AC 3 ms 3544 KiB
006.txt AC 3 ms 3360 KiB
007.txt AC 2 ms 3572 KiB
008.txt AC 3 ms 3516 KiB
009.txt AC 3 ms 3480 KiB
example0.txt AC 2 ms 3540 KiB