結果
| 問題 |
No.415 ぴょん
|
| ユーザー |
AREIDO2
|
| 提出日時 | 2016-08-27 00:17:35 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 19,968 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-08 16:53:00 |
| 合計ジャッジ時間 | 892 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 25 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:6: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d,%d",&N,&D);
| ^~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int i = 0,N,D,z1 = 0,sw = 0,count = 0;
int main(void){
scanf("%d,%d",&N,&D);
while(sw != 1){
z1 = (z1 + D) % N;
if(z1 == 0){
sw = 1;
}
else{
count++;
}
}
printf("%d",count);
return 0;
}
AREIDO2