結果
| 問題 |
No.756 チャンパーノウン定数 (1)
|
| コンテスト | |
| ユーザー |
m_tsubasa
|
| 提出日時 | 2018-12-04 00:27:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 1,448 ms |
| コンパイル使用メモリ | 165,452 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 05:47:51 |
| 合計ジャッジ時間 | 2,230 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 16 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int n, ans;
int main() {
cin >> n;
if(n < 10)
cout << n << endl;
else {
n -= 9;
if(n % 2)
ans = (9 + (n + 1) / 2) / 10;
else
ans = (9 + (n + 1) / 2) % 10;
}
cout << ans << endl;
return 0;
}
m_tsubasa