結果
| 問題 | No.756 チャンパーノウン定数 (1) |
| コンテスト | |
| ユーザー |
Kura
|
| 提出日時 | 2019-02-14 21:01:59 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 489µs | |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 71,424 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-26 03:30:05 |
| 合計ジャッジ時間 | 1,793 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main() {
int D,x; cin >> D;
if (D <= 9) {
cout << D << endl;
}else {
x = D / 2 + 5;
string y = to_string(x);
if (D % 2 == 0) {
cout << y[0] << endl;
}
else {
cout << y[1] << endl;
}
}
}
Kura