結果

問題 No.1168 Digit Sum Sequence
ユーザー risujiroh
提出日時 2020-08-14 23:00:25
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 2,968 ms
コンパイル使用メモリ 244,804 KB
最終ジャッジ日時 2025-01-13 00:32:41
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/extc++.h>

#ifndef DUMP
#define DUMP(...) (void)0
#endif

using namespace std;

int main() {
  cin.tie(nullptr)->sync_with_stdio(false);
  int n;
  cin >> n;
  cout << n % 9 + 1 << '\n';
}
0