結果

問題 No.508 超ゆとり教育
ユーザー キョウチクキョウチク
提出日時 2019-03-25 16:30:00
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 53,720 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-17 03:16:04
合計ジャッジ時間 1,610 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 AC 1 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main() {
	int N;
	cin >> N;
	int r = N / 3;
	int num = 1;
	while (true){
		if (r <= num * num) {
			break;
		}
		else {
			num *= 10;
		}
	}
	r = r / num;
	cout << r << endl;
}
0