結果
| 問題 | No.671 1000000007 |
| コンテスト | |
| ユーザー |
karahubuki
|
| 提出日時 | 2018-05-08 20:54:52 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 656 ms |
| コンパイル使用メモリ | 71,636 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-16 12:17:22 |
| 合計ジャッジ時間 | 6,296 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
string n;
cin >> n;
int ans;
int i=1;
while(n[i]!='7')i++;
if(i>8)cout << i-9 << endl;
else cout << 9-i << endl;
return 0;
}
karahubuki